id = "ansiweather"
name = "AnsiWeather"
homepage = "https://github.com/fcambus/ansiweather"
description = "Weather in terminal, with ANSI colors and Unicode symbols"
executables = ["ansiweather"]
platforms = ["macos", "linux"]
[dotfiles]
paths = ["[configHome]/ansiweather/config", "~/.ansiweatherrc"]
secret = []
[[dotfiles.secret_paths]]
file = ["[configHome]/ansiweather/config", "~/.ansiweatherrc"]
match = { prefix = ["api_key"] }
[commands]
format = 1
label = "Show weather"
description = "Show current weather or a forecast for a location. Covers location, units, forecast days and the display toggles; the API key is left out."
quality = "ai-draft"
parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = false }
[[commands.source]]
id = "readme"
kind = "manual"
url = "https://github.com/fcambus/ansiweather#usage"
revision = "1.19.1"
evidence = """ansiweather [-l location] [-u system] [-f days] [-F] [-a value]
[-s value] [-k key] [-i value] [-w value] [-h value]
[-H value] [-p value] [-d value] [-v]
-l location
Specify location.
-u system
Specify unit system to use ( metric or imperial ).
-f days
Toggle forecast mode for the specified number of upcoming days.
-F Toggle forecast mode for the next five days.
-a value
Toggle ANSI colors display ( true or false ).
-s value
Toggle symbols display ( true or false ).
-w value
Toggle wind data display ( true or false ).
-h value
Toggle humidity data display ( true or false ).
-p value
Toggle pressure data display ( true or false ).
-d value
Toggle daylight data display ( true or false )."""
[[commands.field]]
id = "location"
label = "Location"
type = "string"
option = ["-l"]
sources = ["readme"]
[[commands.field]]
id = "units"
label = "Units"
type = "enum"
option = ["-u"]
choices = [{ value = "metric", label = "Metric" }, { value = "imperial", label = "Imperial" }]
sources = ["readme"]
[[commands.field]]
id = "forecast_days"
label = "Forecast days"
type = "integer"
option = ["-f"]
sources = ["readme"]
[[commands.field]]
id = "forecast_five"
label = "Five-day forecast"
type = "boolean"
option = ["-F"]
sources = ["readme"]
[[commands.field]]
id = "ansi"
label = "ANSI colors"
type = "enum"
option = ["-a"]
choices = [{ value = "true", label = "On" }, { value = "false", label = "Off" }]
sources = ["readme"]
[[commands.field]]
id = "symbols"
label = "Unicode symbols"
type = "enum"
option = ["-s"]
choices = [{ value = "true", label = "On" }, { value = "false", label = "Off" }]
sources = ["readme"]
[[commands.field]]
id = "wind"
label = "Wind data"
type = "enum"
option = ["-w"]
choices = [{ value = "true", label = "Show" }, { value = "false", label = "Hide" }]
sources = ["readme"]
[[commands.field]]
id = "humidity"
label = "Humidity"
type = "enum"
option = ["-h"]
choices = [{ value = "true", label = "Show" }, { value = "false", label = "Hide" }]
sources = ["readme"]
[[commands.field]]
id = "pressure"
label = "Pressure"
type = "enum"
option = ["-p"]
choices = [{ value = "true", label = "Show" }, { value = "false", label = "Hide" }]
sources = ["readme"]
[[commands.field]]
id = "daylight"
label = "Daylight data"
type = "enum"
option = ["-d"]
choices = [{ value = "true", label = "Show" }, { value = "false", label = "Hide" }]
sources = ["readme"]
[[commands.task]]
id = "current"
label = "Current weather"
fields = ["location", "units"]
required = ["location"]
[[commands.task]]
id = "forecast"
label = "Five-day forecast"
set = { forecast_five = [true] }
lock = ["forecast_five"]
fields = ["location", "units", "forecast_five", "symbols"]
required = ["location"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["location", "units", "forecast_days", "forecast_five"]
[[commands.group]]
id = "advanced"
label = "Display"
fields = ["ansi", "symbols", "wind", "humidity", "pressure", "daylight"]