feat(cmd/rgb-led): add subcommands to operate with rgb-leds

This commit is contained in:
2019-06-16 13:00:50 +02:00
parent c81cd2d21c
commit 49d66cfcbb
27 changed files with 713 additions and 40 deletions

View File

@ -4,7 +4,7 @@ import (
"github.com/spf13/cobra"
)
var configPath string
var configFile string
var humidityCmd = &cobra.Command{
Use: "humidity",
@ -12,8 +12,8 @@ var humidityCmd = &cobra.Command{
}
// Execute a
func InitCmd(cmd *cobra.Command, cnfPath string) {
configPath = cnfPath
func InitCmd(cmd *cobra.Command, cnfFile string) {
configFile = cnfFile
cmd.AddCommand(humidityCmd)