fix(cmd/humidity,pressure,temperature): short informations
This commit is contained in:
parent
9feee62c35
commit
440d543a83
@ -25,7 +25,7 @@ var configFile string
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "flucky",
|
||||
Short: "Read from sensors",
|
||||
Short: "flucky - operate with differen sensors, his values and remote servers to synchronize measured values",
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
// check if config file exists
|
||||
|
@ -10,7 +10,7 @@ var round float64
|
||||
|
||||
var humidityCmd = &cobra.Command{
|
||||
Use: "humidity",
|
||||
Short: "Read humidity from sensor",
|
||||
Short: "Operates with humidity values",
|
||||
}
|
||||
|
||||
// Execute a
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
|
||||
var listTemperatureCmd = &cobra.Command{
|
||||
Use: "list",
|
||||
Short: "print humidities",
|
||||
Short: "List humidity values from different or specified sensors by arguments",
|
||||
Example: fmt.Sprintf("flucky humidity logs"),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
|
@ -19,7 +19,7 @@ var logs bool
|
||||
|
||||
var readHumidityCmd = &cobra.Command{
|
||||
Use: "read",
|
||||
Short: "read humidity from sensor",
|
||||
Short: "Reading air pressure values from different or specified sensors by arguments",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
|
||||
var listTemperatureCmd = &cobra.Command{
|
||||
Use: "list",
|
||||
Short: "print air pressures",
|
||||
Short: "Reading temperature values from different or specified sensors by arguments",
|
||||
Example: fmt.Sprintf("flucky pressure logs"),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
|
@ -10,7 +10,7 @@ var round float64
|
||||
|
||||
var pressureCmd = &cobra.Command{
|
||||
Use: "pressure",
|
||||
Short: "Read pressure from sensor",
|
||||
Short: "List air pressure values from different or specified sensors by arguments",
|
||||
}
|
||||
|
||||
// Execute a
|
||||
|
@ -19,7 +19,7 @@ var logs bool
|
||||
|
||||
var readPressureCmd = &cobra.Command{
|
||||
Use: "read",
|
||||
Short: "read pressure from sensor",
|
||||
Short: "Operates with air pressure values",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
|
||||
var listTemperatureCmd = &cobra.Command{
|
||||
Use: "list",
|
||||
Short: "print temperatures",
|
||||
Short: "List temperature values from different or specified sensors by arguments",
|
||||
Example: fmt.Sprintf("flucky temperature logs"),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
|
@ -20,7 +20,7 @@ var logs bool
|
||||
|
||||
var readTemperatureCmd = &cobra.Command{
|
||||
Use: "read",
|
||||
Short: "read temperature from sensor",
|
||||
Short: "Reading temperature values from different or specified sensors by arguments",
|
||||
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
|
@ -12,7 +12,7 @@ var round float64
|
||||
|
||||
var temperatureCmd = &cobra.Command{
|
||||
Use: "temperature",
|
||||
Short: "Operate with temperature messures",
|
||||
Short: "Operates with temperature values",
|
||||
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user