package temperature import ( "fmt" "github.com/spf13/cobra" ) var compression bool var configFile string var round float64 var temperatureCmd = &cobra.Command{ Use: "temperature", Short: "Operates with temperature values", Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"), } // Execute a func InitCmd(cmd *cobra.Command, cnfFile string) { configFile = cnfFile cmd.AddCommand(temperatureCmd) }