Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
NewRootCommand creates the cuefn Cobra command tree.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
// Version is the release version.
Version string
// Commit is the source commit used to build the binary.
Commit string
// Date is the build timestamp.
Date string
}
BuildInfo describes linker-injected build metadata printed by --version.
type Options ¶
type Options struct {
// In receives interactive command input.
In io.Reader
// Out receives machine-readable command output.
Out io.Writer
// Err receives diagnostics and human-readable status.
Err io.Writer
// Build controls the root command version output.
Build BuildInfo
// Viper is the configuration instance used by the command tree.
Viper *viper.Viper
}
Options customizes root command construction.
Click to show internal directories.
Click to hide internal directories.