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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.