Documentation ¶
Index ¶
Constants ¶
const Version = "0.4.0"
Version is the main version number that is being run at the moment.
const VersionPrerelease = ""
VersionPrerelease is a pre-release marker for the version. If this is "" (empty string) then it means that it is a final release. Otherwise, this is a pre-release such as "dev" (in development), "beta", "rc1", etc.
Variables ¶
var GitCommit string
GitCommit is the git commit that was compiled. This will be filled in by the compiler.
var GitDescribe string
GitDescribe is the git description that was compiled
var RootCmd = &cobra.Command{
Use: "consuldog",
Short: "A Zero-conf, consul based, service discovery daemon for DataDog",
Long: `Consuldog is a service discovery daemon for datadog that auto
populates datadog config files based on services found in consul.`,
Run: watch,
}
RootCmd represents the base command when called without any subcommands
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 GetVersionParts ¶
func GetVersionParts() (rev, ver, rel string)
GetVersionParts returns the version strings. Printing of the version should be used in conjunction with the PrettyVersion method.
func PrettyVersion ¶
PrettyVersion takes the version parts and formats it in a human readable string.
Types ¶
This section is empty.