Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLogLevel = "info" DefaultDBHome = "db" DefaultPort = 8000 )
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
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.
func VersionCommand ¶ added in v0.2.0
VersionCommand returns a CLI command to interactively print the application binary version information. Note: When seeking to add the extra info to the context The below can be added to the initRootCmd to include the extraInfo field
cmdContext := context.WithValue(context.Background(), version.ContextKey{}, extraInfo) rootCmd.SetContext(cmdContext)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.