cmd

package
v0.0.0-...-1c4f775 Latest Latest
Warning

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

Go to latest
Published: May 20, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GITCOMMIT string

GITCOMMIT The gitcommit the application was built from

View Source
var RootCmd = &cobra.Command{
	Use:   "annotate-influxdb",
	Short: "A simple command line tool to send annotation data to InfluxDB",
	Long:  ``,
	PreRun: func(cmd *cobra.Command, args []string) {
		rootCmdPreRun()
	},
	Run: func(cmd *cobra.Command, args []string) {
		rootCmdRun()
	},
}

RootCmd represents the base command when called without any subcommands

View Source
var VERSION string

VERSION The version of the application

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetInfluxDBClient

func GetInfluxDBClient(host string) (influxdb.Client, error)

GetInfluxDBClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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