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{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "flucky",
|
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 {
|
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
// check if config file exists
|
// check if config file exists
|
||||||
|
@ -10,7 +10,7 @@ var round float64
|
|||||||
|
|
||||||
var humidityCmd = &cobra.Command{
|
var humidityCmd = &cobra.Command{
|
||||||
Use: "humidity",
|
Use: "humidity",
|
||||||
Short: "Read humidity from sensor",
|
Short: "Operates with humidity values",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute a
|
// Execute a
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
var listTemperatureCmd = &cobra.Command{
|
var listTemperatureCmd = &cobra.Command{
|
||||||
Use: "list",
|
Use: "list",
|
||||||
Short: "print humidities",
|
Short: "List humidity values from different or specified sensors by arguments",
|
||||||
Example: fmt.Sprintf("flucky humidity logs"),
|
Example: fmt.Sprintf("flucky humidity logs"),
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ var logs bool
|
|||||||
|
|
||||||
var readHumidityCmd = &cobra.Command{
|
var readHumidityCmd = &cobra.Command{
|
||||||
Use: "read",
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
// read configuration
|
// read configuration
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
var listTemperatureCmd = &cobra.Command{
|
var listTemperatureCmd = &cobra.Command{
|
||||||
Use: "list",
|
Use: "list",
|
||||||
Short: "print air pressures",
|
Short: "Reading temperature values from different or specified sensors by arguments",
|
||||||
Example: fmt.Sprintf("flucky pressure logs"),
|
Example: fmt.Sprintf("flucky pressure logs"),
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ var round float64
|
|||||||
|
|
||||||
var pressureCmd = &cobra.Command{
|
var pressureCmd = &cobra.Command{
|
||||||
Use: "pressure",
|
Use: "pressure",
|
||||||
Short: "Read pressure from sensor",
|
Short: "List air pressure values from different or specified sensors by arguments",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute a
|
// Execute a
|
||||||
|
@ -19,7 +19,7 @@ var logs bool
|
|||||||
|
|
||||||
var readPressureCmd = &cobra.Command{
|
var readPressureCmd = &cobra.Command{
|
||||||
Use: "read",
|
Use: "read",
|
||||||
Short: "read pressure from sensor",
|
Short: "Operates with air pressure values",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
// read configuration
|
// read configuration
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
var listTemperatureCmd = &cobra.Command{
|
var listTemperatureCmd = &cobra.Command{
|
||||||
Use: "list",
|
Use: "list",
|
||||||
Short: "print temperatures",
|
Short: "List temperature values from different or specified sensors by arguments",
|
||||||
Example: fmt.Sprintf("flucky temperature logs"),
|
Example: fmt.Sprintf("flucky temperature logs"),
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ var logs bool
|
|||||||
|
|
||||||
var readTemperatureCmd = &cobra.Command{
|
var readTemperatureCmd = &cobra.Command{
|
||||||
Use: "read",
|
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"),
|
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ var round float64
|
|||||||
|
|
||||||
var temperatureCmd = &cobra.Command{
|
var temperatureCmd = &cobra.Command{
|
||||||
Use: "temperature",
|
Use: "temperature",
|
||||||
Short: "Operate with temperature messures",
|
Short: "Operates with temperature values",
|
||||||
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user