Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "unknown" Build = "unknown" Time = "unknown" Packer = "" )
Build number and versions injected at compile time
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "Show build, version and build date", Long: versionHelp, Run: func(cmd *cobra.Command, args []string) { packed := "" if Packer != "" { packed = fmt.Sprintf("Packer: %s\n", Packer) } fmt.Printf("Build: %s\nVersion: %s\nBuild Date: %s\n%s", Build, Version, Time, packed) }, }
VersionCmd is a command that will display the build number and version (if any)
Functions ¶
func AddAllFlags ¶
AddAllFlags will add all the flags provided in this package to the provided command and will bind those flags with viper.
func AddConfigurationFlag ¶
AddConfigurationFlag adds support to provide a configuration file on the command line.
func AddLoggerFlags ¶
AddLoggerFlags adds support to configure the level of the logger.
func AddSoundCloudFlags ¶
AddSoundCloudFlags adds support for SoundCloud related flags.
Types ¶
Click to show internal directories.
Click to hide internal directories.