23 lines
381 B
Go
23 lines
381 B
Go
package pressure
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var compression bool
|
|
var configFile *string
|
|
var round float64
|
|
|
|
var pressureCmd = &cobra.Command{
|
|
Use: "pressure",
|
|
Short: "List air pressure values from different or specified sensors by arguments",
|
|
}
|
|
|
|
// Execute a
|
|
func InitCmd(cmd *cobra.Command, cnfFile *string) {
|
|
configFile = cnfFile
|
|
|
|
cmd.AddCommand(pressureCmd)
|
|
|
|
}
|