2019-06-16 11:00:50 +00:00
|
|
|
package rgbled
|
|
|
|
|
|
|
|
import (
|
2019-09-01 10:27:06 +00:00
|
|
|
"github.com/Masterminds/semver"
|
2019-06-16 11:00:50 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2019-09-01 10:27:06 +00:00
|
|
|
var (
|
|
|
|
configFile *string
|
|
|
|
|
|
|
|
version *semver.Version
|
|
|
|
)
|
2019-06-16 11:00:50 +00:00
|
|
|
|
|
|
|
var rgbLedCmd = &cobra.Command{
|
|
|
|
Use: "rgb-led",
|
|
|
|
Short: "Manage RGB-LEDs",
|
|
|
|
}
|
|
|
|
|
|
|
|
// InitCmd da
|
2019-09-01 10:27:06 +00:00
|
|
|
func InitCmd(cmd *cobra.Command, cnfFile *string, sversion *semver.Version) {
|
2019-06-16 11:00:50 +00:00
|
|
|
configFile = cnfFile
|
2019-09-01 10:27:06 +00:00
|
|
|
version = sversion
|
2019-06-16 11:00:50 +00:00
|
|
|
|
|
|
|
cmd.AddCommand(rgbLedCmd)
|
|
|
|
|
|
|
|
}
|