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