{
  "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": [],
    "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
    },
    "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]\n            [-s value] [-k key] [-i value] [-w value] [-h value]\n            [-H value] [-p value] [-d value] [-v]\n-l location\n        Specify location.\n-u system\n        Specify unit system to use ( metric or imperial ).\n-f days\n        Toggle forecast mode for the specified number of upcoming days.\n-F      Toggle forecast mode for the next five days.\n-a value\n        Toggle ANSI colors display ( true or false ).\n-s value\n        Toggle symbols display ( true or false ).\n-w value\n        Toggle wind data display ( true or false ).\n-h value\n        Toggle humidity data display ( true or false ).\n-p value\n        Toggle pressure data display ( true or false ).\n-d value\n        Toggle daylight data display ( true or false )."
      }
    ],
    "field": [
      {
        "id": "location",
        "label": "Location",
        "type": "string",
        "option": [
          "-l"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "units",
        "label": "Units",
        "type": "enum",
        "option": [
          "-u"
        ],
        "choices": [
          {
            "value": "metric",
            "label": "Metric"
          },
          {
            "value": "imperial",
            "label": "Imperial"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "forecast_days",
        "label": "Forecast days",
        "type": "integer",
        "option": [
          "-f"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "forecast_five",
        "label": "Five-day forecast",
        "type": "boolean",
        "option": [
          "-F"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "ansi",
        "label": "ANSI colors",
        "type": "enum",
        "option": [
          "-a"
        ],
        "choices": [
          {
            "value": "true",
            "label": "On"
          },
          {
            "value": "false",
            "label": "Off"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "symbols",
        "label": "Unicode symbols",
        "type": "enum",
        "option": [
          "-s"
        ],
        "choices": [
          {
            "value": "true",
            "label": "On"
          },
          {
            "value": "false",
            "label": "Off"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "wind",
        "label": "Wind data",
        "type": "enum",
        "option": [
          "-w"
        ],
        "choices": [
          {
            "value": "true",
            "label": "Show"
          },
          {
            "value": "false",
            "label": "Hide"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "humidity",
        "label": "Humidity",
        "type": "enum",
        "option": [
          "-h"
        ],
        "choices": [
          {
            "value": "true",
            "label": "Show"
          },
          {
            "value": "false",
            "label": "Hide"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "pressure",
        "label": "Pressure",
        "type": "enum",
        "option": [
          "-p"
        ],
        "choices": [
          {
            "value": "true",
            "label": "Show"
          },
          {
            "value": "false",
            "label": "Hide"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "daylight",
        "label": "Daylight data",
        "type": "enum",
        "option": [
          "-d"
        ],
        "choices": [
          {
            "value": "true",
            "label": "Show"
          },
          {
            "value": "false",
            "label": "Hide"
          }
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "task": [
      {
        "id": "current",
        "label": "Current weather",
        "fields": [
          "location",
          "units"
        ],
        "required": [
          "location"
        ]
      },
      {
        "id": "forecast",
        "label": "Five-day forecast",
        "set": {
          "forecast_five": [
            true
          ]
        },
        "lock": [
          "forecast_five"
        ],
        "fields": [
          "location",
          "units",
          "forecast_five",
          "symbols"
        ],
        "required": [
          "location"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "location",
          "units",
          "forecast_days",
          "forecast_five"
        ]
      },
      {
        "id": "advanced",
        "label": "Display",
        "fields": [
          "ansi",
          "symbols",
          "wind",
          "humidity",
          "pressure",
          "daylight"
        ]
      }
    ]
  }
}
