package humidity import ( "github.com/spf13/cobra" ) var compression bool var configFile string var round float64 var humidityCmd = &cobra.Command{ Use: "humidity", Short: "Read humidity from sensor", } // Execute a func InitCmd(cmd *cobra.Command, cnfFile string) { configFile = cnfFile cmd.AddCommand(humidityCmd) }