package temperature import ( "github.com/spf13/cobra" ) var configDir string var temperatureCmd = &cobra.Command{ Use: "temperature", Short: "Read temperature from sensor", } // Execute a func InitCmd(cmd *cobra.Command, cnf string) { configDir = cnf cmd.AddCommand(temperatureCmd) }