Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(version VersionDescriptor)
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
Types ¶
type VersionDescriptor ¶
type VersionDescriptor struct {
Version, Commit, Date, BuiltBy string
}
func (*VersionDescriptor) String ¶
func (v *VersionDescriptor) String() string
Click to show internal directories.
Click to hide internal directories.