PKGBUILD/cmd/cmd.go

21 lines
313 B
Go
Raw Normal View History

2018-11-07 19:07:15 +00:00
package cmd
import (
"git.cryptic.systems/fh-trier/go-flucky/cmd/temperature"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "flucky",
Short: "Read from sensors",
}
// Execute a
func Execute(version string) {
rootCmd.Version = version
temperature.InitCmd(rootCmd)
rootCmd.Execute()
}