chore: Shorter descriptions

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-10-18 09:28:18 +02:00
parent 985f8a53d3
commit df389705a0
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5
6 changed files with 7 additions and 8 deletions

View file

@ -10,13 +10,13 @@ import (
var cacheCmd = &cobra.Command{ var cacheCmd = &cobra.Command{
Use: "cache", Use: "cache",
Short: "Get details about your cached locations", Short: "List cached locations",
Args: cobra.MaximumNArgs(0), Args: cobra.MaximumNArgs(0),
Run: caches, Run: caches,
} }
var cacheClearCmd = &cobra.Command{ var cacheClearCmd = &cobra.Command{
Use: "clear", Use: "clear",
Short: "Clear cache", Short: "Clear cached locations",
Args: cobra.MaximumNArgs(0), Args: cobra.MaximumNArgs(0),
Run: cachesClear, Run: cachesClear,
} }

View file

@ -10,7 +10,7 @@ import (
var forecastCmd = &cobra.Command{ var forecastCmd = &cobra.Command{
Use: "forecast <location>", Use: "forecast <location>",
Aliases: []string{"f", "ls"}, Aliases: []string{"f", "ls"},
Short: "Get forecasted weather", Short: "Forecasted weather",
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
Run: forecast, Run: forecast,
} }

View file

@ -10,7 +10,7 @@ import (
var nowCmd = &cobra.Command{ var nowCmd = &cobra.Command{
Use: "now <location>", Use: "now <location>",
Aliases: []string{"current", "n"}, Aliases: []string{"current", "n"},
Short: "Get current forecasted weather", Short: "Current forecasted weather",
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
Run: now, Run: now,
} }

View file

@ -8,8 +8,7 @@ import (
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "yr", Use: "yr",
Short: "Get the weather for your desired location.", Short: "yr is CLI tool for weather forecasts",
Long: `Get the weather for your desired location.`,
Run: root, Run: root,
} }

View file

@ -10,7 +10,7 @@ import (
var todayCmd = &cobra.Command{ var todayCmd = &cobra.Command{
Use: "today <location>", Use: "today <location>",
Short: "Get tomorrow's forecasted weather", Short: "Today's forecasted weather",
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
Run: today, Run: today,
} }

View file

@ -15,7 +15,7 @@ import (
var tomorrowCmd = &cobra.Command{ var tomorrowCmd = &cobra.Command{
Use: "tomorrow <location>", Use: "tomorrow <location>",
Aliases: []string{"twm", "trm"}, Aliases: []string{"twm", "trm"},
Short: "Get tomorrow's forecasted weather", Short: "Tomorrow's forecasted weather",
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
Run: tomorrow, Run: tomorrow,
} }