cmd

package
v0.0.0-...-d7e6233 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.4.0"

Version is the main version number that is being run at the moment.

View Source
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

View Source
var GitCommit string

GitCommit is the git commit that was compiled. This will be filled in by the compiler.

View Source
var GitDescribe string

GitDescribe is the git description that was compiled

View Source
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

func PrettyVersion(revision, version, versionPrerelease string) string

PrettyVersion takes the version parts and formats it in a human readable string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL