{
  "name": "splash",
  "description": "Get stunning wallpapers from Unsplash",
  "subcommands": [
    {
      "name": "settings",
      "description": "Manage settings",
      "subcommands": [
        {
          "name": "get",
          "args": [
            {
              "name": "config key",
              "description": "Config key"
            }
          ]
        },
        {
          "name": "set",
          "description": "Setup the configuration"
        },
        {
          "name": "restore",
          "description": "Restore default settings"
        }
      ]
    },
    {
      "name": "aliases",
      "description": "Manage aliases",
      "subcommands": [
        {
          "name": "get",
          "description": "Get an alias",
          "args": [
            {
              "name": "alias"
            }
          ]
        },
        {
          "name": "set",
          "description": "Set an alias",
          "args": [
            {
              "name": "key"
            },
            {
              "name": "value"
            }
          ]
        },
        {
          "name": "help",
          "description": "Show help menu"
        }
      ]
    },
    {
      "name": "collection",
      "description": "Manage collections",
      "subcommands": [
        {
          "name": "get",
          "description": "Get a collection",
          "args": [
            {
              "name": "collection id"
            }
          ]
        },
        {
          "name": "delete",
          "description": "Delete a collection",
          "args": [
            {
              "name": "collection id"
            }
          ]
        },
        {
          "name": "create",
          "description": "Create a collection"
        },
        {
          "name": "photos:add",
          "description": "Add photos to a collection"
        },
        {
          "name": "photos:remove",
          "description": "Remove photos to a collection"
        },
        {
          "name": "help",
          "description": "Show help for this command"
        }
      ]
    },
    {
      "name": "dir",
      "description": "Manage SplashCLI download directory",
      "subcommands": [
        {
          "name": "get",
          "description": "Get the download directory path"
        },
        {
          "name": "set",
          "description": "Set the download directory path",
          "args": [
            {
              "name": "path"
            }
          ]
        },
        {
          "name": "clean",
          "description": "Delete all the downloaded photos"
        },
        {
          "name": "count",
          "description": "Count all the downloaded photos"
        },
        {
          "name": "help",
          "description": "Show help for this command"
        }
      ]
    },
    {
      "name": "user",
      "subcommands": [
        {
          "name": "login",
          "description": "Login with your Unsplash account"
        },
        {
          "name": "logout",
          "description": "Removes all user data"
        },
        {
          "name": "liked",
          "description": "List last 10 liked photos"
        },
        {
          "name": "collections",
          "description": "List all user's collections"
        },
        {
          "name": "get",
          "description": "Get user infos"
        },
        {
          "name": "edit",
          "aliases": [
            "update"
          ],
          "description": "Update user infos"
        },
        {
          "name": "help",
          "description": "Help Menu"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Help Message"
    },
    {
      "names": [
        "--version",
        "-v"
      ],
      "description": "Prints `splash-cli` version"
    },
    {
      "names": [
        "--scale"
      ],
      "description": "Scale of the image",
      "takes_arg": true,
      "arg": {
        "name": "scale",
        "suggestions": [
          "auto",
          "fill",
          "fit",
          "stretch",
          "center"
        ]
      }
    },
    {
      "names": [
        "--screen"
      ],
      "description": "Set wallpaper on selected screen",
      "takes_arg": true,
      "arg": {
        "name": "screen",
        "suggestions": [
          "all",
          "main"
        ]
      }
    },
    {
      "names": [
        "-s",
        "--save"
      ],
      "description": "Save photo without setting as wallpaper",
      "takes_arg": true,
      "arg": {
        "name": "path",
        "template": "folders"
      }
    },
    {
      "names": [
        "--set"
      ],
      "description": "Set wallpaper from local file",
      "takes_arg": true,
      "arg": {
        "name": "filepath",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-i",
        "--info"
      ],
      "description": "Show image exif data"
    },
    {
      "names": [
        "-q",
        "--quiet"
      ],
      "description": "Hide output"
    },
    {
      "names": [
        "--rotate"
      ],
      "description": "Rotate image",
      "takes_arg": true,
      "arg": {
        "name": "degrees",
        "suggestions": [
          "90",
          "180",
          "270"
        ]
      }
    },
    {
      "names": [
        "--colorspace"
      ],
      "description": "Define image colorspace",
      "takes_arg": true,
      "arg": {
        "name": "colorspace",
        "suggestions": [
          "srgb",
          "rgb",
          "cmyk",
          "lab",
          "b-w"
        ]
      }
    },
    {
      "names": [
        "--flip"
      ],
      "description": "Flip image on the Y axis"
    },
    {
      "names": [
        "-f",
        "--featured"
      ],
      "description": "Limit to only featured photos"
    },
    {
      "names": [
        "--query"
      ],
      "description": "Filter by keywords",
      "takes_arg": true,
      "arg": {
        "name": "querystring"
      }
    },
    {
      "names": [
        "--orientation"
      ],
      "description": "Filter by orientation",
      "takes_arg": true,
      "arg": {
        "name": "orientation",
        "suggestions": [
          "landscape",
          "portrait",
          "squarish"
        ]
      }
    },
    {
      "names": [
        "-c",
        "--curated"
      ],
      "description": "Random Curated photo"
    },
    {
      "names": [
        "-u",
        "--user"
      ],
      "description": "Random photo from user",
      "takes_arg": true,
      "arg": {
        "name": "username"
      }
    },
    {
      "names": [
        "--collection"
      ],
      "description": "Random photo from collection",
      "takes_arg": true,
      "arg": {
        "name": "collection id"
      }
    },
    {
      "names": [
        "--id"
      ],
      "description": "Get photo by ID",
      "takes_arg": true,
      "arg": {
        "name": "photo_id"
      }
    },
    {
      "names": [
        "--day"
      ],
      "description": "Photo of the day"
    }
  ]
}
