2019-07-02 20:43:05 +00:00
|
|
|
package pressure
|
|
|
|
|
|
|
|
import (
|
2019-09-01 10:27:06 +00:00
|
|
|
"github.com/Masterminds/semver"
|
2019-07-02 20:43:05 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2019-09-01 10:27:06 +00:00
|
|
|
var (
|
|
|
|
compression bool
|
|
|
|
configFile *string
|
|
|
|
round float64
|
|
|
|
|
|
|
|
version *semver.Version
|
|
|
|
)
|
2019-07-02 20:43:05 +00:00
|
|
|
|
|
|
|
var pressureCmd = &cobra.Command{
|
|
|
|
Use: "pressure",
|
2019-07-02 20:54:58 +00:00
|
|
|
Short: "List air pressure values from different or specified sensors by arguments",
|
2019-07-02 20:43:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Execute a
|
2019-09-01 10:27:06 +00:00
|
|
|
func InitCmd(cmd *cobra.Command, cnfFile *string, sversion *semver.Version) {
|
2019-07-02 20:43:05 +00:00
|
|
|
configFile = cnfFile
|
2019-09-01 10:27:06 +00:00
|
|
|
version = sversion
|
2019-07-02 20:43:05 +00:00
|
|
|
|
|
|
|
cmd.AddCommand(pressureCmd)
|
|
|
|
|
|
|
|
}
|