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
[[dotfiles.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 }
[[commands.source]]
id = "help"
kind = "help"
url = "https://raw.githubusercontent.com/rawnly/splash-cli/HEAD/README.md"
evidence = """
$ splash --day
$ splash --query "mountains" --orientation "landscape"
--day Retrieve the photo of the day
--id string Retrieve a single photo by ID
--no-cache Ignore cache
-o, --orientation string Filter by photo orientation (default "landscape")
--plain Plain output. Good for tty
-q, --query string Limit selection to photos matching a search term.
-s, --save Save the photo without setting it as wallpaper
"""
[[commands.field]]
id = "query"
label = "Search term"
type = "string"
option = ["--query", "-q"]
sources = ["help"]
[[commands.field]]
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"]
[[commands.field]]
id = "day"
label = "Photo of the day"
type = "boolean"
option = ["--day"]
sources = ["help"]
[[commands.field]]
id = "photo_id"
label = "Photo ID"
type = "string"
option = ["--id"]
sources = ["help"]
[[commands.field]]
id = "save"
label = "Save only (do not set wallpaper)"
type = "boolean"
option = ["--save", "-s"]
sources = ["help"]
[[commands.field]]
id = "no_cache"
label = "Ignore cache"
type = "boolean"
option = ["--no-cache"]
sources = ["help"]
[[commands.field]]
id = "plain"
label = "Plain output"
type = "boolean"
option = ["--plain"]
sources = ["help"]
[[commands.task]]
id = "search"
label = "Wallpaper from a search"
fields = ["query", "orientation"]
required = ["query"]
[[commands.task]]
id = "day"
label = "Photo of the day"
fields = ["day", "save"]
required = ["day"]
set = { day = [true] }
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["query", "orientation", "day", "photo_id", "save"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["no_cache", "plain"]