cli

package
v0.5.4-0...-121c8a9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "unknown"

Version will be injected by ld flags.

Functions

This section is empty.

Types

type GlobalFlags

type GlobalFlags struct {
	Debug   bool             `short:"d" long:"debug"  help:"Run in debug mode."`
	Chroot  bool             `short:"c" long:"chroot" help:"Specify that command is being run from a chrooted environment."`
	Live    bool             `short:"l" long:"live"   help:"Specify that command is being run from a live medium."`
	Version kong.VersionFlag `short:"v" long:"version"   help:"Print version and exit."`
}

GlobalFlags contains the flags for all commands.

func Parse

func Parse() (*kong.Context, GlobalFlags)

Jump to

Keyboard shortcuts

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