commands

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "mqti",
	Short:         "MQTT subscriber that pumps data into InfluxDB",
	Long:          `MQTT subscriber that pumps data into InfluxDB`,
	SilenceErrors: true,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		if err := validateInput(); err != nil {
			return err
		}

		mqti.EnableDebugging(debug)

		return nil
	},
	Run: func(cmd *cobra.Command, args []string) {
		if showVersion {
			fmt.Println(mqti.Version)
		}
		cmd.Help()
	},
}

RootCmd ...

Functions

func Execute

func Execute() error

Execute ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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