cli

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitNoObservation means the scan completed and no nested virtualization
	// usage was observed.
	ExitNoObservation = 0

	// ExitObserved means the scan completed and nested virtualization usage was
	// observed.
	ExitObserved = 1

	// ExitError means the scan failed.
	ExitError = 2
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, stdout, stderr io.Writer) int

Run executes the nestedvirt CLI.

func SetVersion

func SetVersion(info Version)

SetVersion sets build metadata displayed by the version command.

Types

type Version

type Version struct {
	Version string
	Commit  string
	Date    string
}

Version contains build metadata for the CLI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL