{
  "id": "splash-cli",
  "name": "Splash CLI",
  "homepage": "https://github.com/rawnly/splash-cli",
  "description": "A simple CLI to download Unsplash wallpapers. Nothing fancy, it just works.",
  "executables": [
    "splash"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/splash-cli.json",
      "~/.splash-cli/splash-cli.json"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": [
          "~/.config/splash-cli.json",
          "~/.splash-cli/splash-cli.json"
        ],
        "match": {
          "key_path": [
            "auth.access_token",
            "auth.refresh_token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Get an Unsplash photo",
    "description": "Download an Unsplash photo and set it as wallpaper, or only save it. Collection, topic and user filters, scale, screen and the auth/alias/settings subcommands are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://raw.githubusercontent.com/rawnly/splash-cli/HEAD/README.md",
        "evidence": "$ splash --day\n$ splash --query \"mountains\" --orientation \"landscape\"\n      --day                   Retrieve the photo of the day\n      --id string             Retrieve a single photo by ID\n      --no-cache              Ignore cache\n  -o, --orientation string    Filter by photo orientation (default \"landscape\")\n      --plain                 Plain output. Good for tty\n  -q, --query string          Limit selection to photos matching a search term.\n  -s, --save                  Save the photo without setting it as wallpaper\n"
      }
    ],
    "field": [
      {
        "id": "query",
        "label": "Search term",
        "type": "string",
        "option": [
          "--query",
          "-q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "orientation",
        "label": "Orientation",
        "type": "string",
        "option": [
          "--orientation",
          "-o"
        ],
        "suggestions": [
          {
            "value": "landscape",
            "label": "Landscape"
          },
          {
            "value": "portrait",
            "label": "Portrait"
          },
          {
            "value": "squarish",
            "label": "Squarish"
          }
        ],
        "observed_default": "landscape",
        "sources": [
          "help"
        ]
      },
      {
        "id": "day",
        "label": "Photo of the day",
        "type": "boolean",
        "option": [
          "--day"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "photo_id",
        "label": "Photo ID",
        "type": "string",
        "option": [
          "--id"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "save",
        "label": "Save only (do not set wallpaper)",
        "type": "boolean",
        "option": [
          "--save",
          "-s"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_cache",
        "label": "Ignore cache",
        "type": "boolean",
        "option": [
          "--no-cache"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "plain",
        "label": "Plain output",
        "type": "boolean",
        "option": [
          "--plain"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "search",
        "label": "Wallpaper from a search",
        "fields": [
          "query",
          "orientation"
        ],
        "required": [
          "query"
        ]
      },
      {
        "id": "day",
        "label": "Photo of the day",
        "fields": [
          "day",
          "save"
        ],
        "required": [
          "day"
        ],
        "set": {
          "day": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "query",
          "orientation",
          "day",
          "photo_id",
          "save"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "no_cache",
          "plain"
        ]
      }
    ]
  }
}
