PKGBUILD/cmd/rgbled/rgbled.go

21 lines
278 B
Go

package rgbled
import (
"github.com/spf13/cobra"
)
var configFile *string
var rgbLedCmd = &cobra.Command{
Use: "rgb-led",
Short: "Manage RGB-LEDs",
}
// InitCmd da
func InitCmd(cmd *cobra.Command, cnfFile *string) {
configFile = cnfFile
cmd.AddCommand(rgbLedCmd)
}