fix(cmd/humidity,pressure,temperature): short informations

This commit is contained in:
Markus Pesch 2019-07-02 22:54:58 +02:00
parent 9feee62c35
commit 440d543a83
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
10 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -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

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -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) {

View File

@ -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"),
}