Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowVersion ¶
func ShowVersion(name, version, buildDate, oSBuildName string)
Types ¶
type Cli ¶
type Cli interface {
Init(opt Options)
// ShowVersion - default show version
ShowVersion()
GetVersion() (ver *Version)
SetConfig(cfg interface{})
GenerateConfig(cfg interface{}, output string)
SetDefaultAction(callback func(ctx interface{}) (err error))
SetCommand(subcommand []*Command)
Run(inputs ...any) (err error)
ParsingContext(ctx interface{}) ParsingContext
RegisterClean(inputs ...any)
}
type ParsingContext ¶
type SecretEngine ¶
type Version ¶ added in v1.0.1002
type Version struct {
Name string `json:"name"`
Version string `json:"version"`
BuildDate string `json:"build_date"`
OSBuildName string `json:"os_build_name"`
RuntimeVersion string `json:"runtime_version"`
RuntimeOS string `json:"runtime_os"`
RuntimeArch string `json:"runtime_arch"`
RuntimeCompiler string `json:"runtime_compiler"`
RunningOn string `json:"running_on"`
}
func GetVersion ¶ added in v1.0.1002
Click to show internal directories.
Click to hide internal directories.