PKGBUILD/cmd/sensor/sensor.go

27 lines
386 B
Go
Raw Normal View History

package sensor
import (
"github.com/Masterminds/semver"
"github.com/spf13/cobra"
)
var (
configFile *string
version *semver.Version
)
var sensorCmd = &cobra.Command{
Use: "sensor",
Short: "Manage Sensors",
}
2019-02-22 12:08:58 +00:00
// InitCmd da
func InitCmd(cmd *cobra.Command, cnfFile *string, sversion *semver.Version) {
configFile = cnfFile
version = sversion
cmd.AddCommand(sensorCmd)
}