PKGBUILD/cmd/pressure/pressure.go

28 lines
446 B
Go
Raw Normal View History

package pressure
import (
"github.com/Masterminds/semver"
"github.com/spf13/cobra"
)
var (
compression bool
configFile *string
round float64
version *semver.Version
)
var pressureCmd = &cobra.Command{
Use: "pressure",
Short: "List air pressure values from different or specified sensors by arguments",
}
// Execute a
2020-01-11 16:24:34 +00:00
func InitCmd(cmd *cobra.Command, cnfFile *string) {
configFile = cnfFile
cmd.AddCommand(pressureCmd)
}