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)
Click to show internal directories.
Click to hide internal directories.