id = "tldr"
name = "tldr pages"
homepage = "https://tldr.sh"
description = "A collection of community-maintained help pages for command-line tools."
icon = "https://tldr.sh/assets/img/icon.png"
executables = ["tldr"]
[dotfiles]
paths = [
"~/.config/tealdeer/config.toml",
"~/Library/Preferences/tealdeer/config.toml",
"~/.tldrrc",
"~/.config/tldr/config.toml",
]
exclude = [
"[xdgCache]/tealdeer/",
"~/Library/Caches/tealdeer/",
"~/.tldr/",
]
secret = []
side_effect = false
[commands]
format = 1
label = "tldr pages"
description = "Look up a simplified man page, search, or refresh the page cache."
quality = "ai-draft"
base = "fig:tldr"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/tldr.ts"
license = "MIT"
[[commands.field]]
id = "command"
label = "Command"
type = "string"
position = 0
sources = ["fig"]
[[commands.field]]
id = "platform"
label = "Platform"
type = "enum"
option = ["-p", "--platform"]
choices = [{ value = "linux", label = "Linux" }, { value = "osx", label = "macOS" }, { value = "sunos", label = "SunOS" }, { value = "windows", label = "Windows" }, { value = "common", label = "Common" }]
sources = ["fig"]
[[commands.field]]
id = "search"
label = "Search all pages"
type = "string"
option = ["-s", "--search"]
sources = ["fig"]
[[commands.field]]
id = "list"
label = "List pages"
type = "boolean"
option = ["-l", "--list"]
sources = ["fig"]
[[commands.field]]
id = "update"
label = "Update page cache"
type = "boolean"
option = ["-u", "--update"]
sources = ["fig"]
[[commands.field]]
id = "clear_cache"
label = "Clear local cache"
type = "boolean"
option = ["-c", "--clear-cache"]
effect = "delete"
sources = ["fig"]
[[commands.task]]
id = "lookup"
label = "Look up a command"
fields = ["command", "platform"]
required = ["command"]
[[commands.task]]
id = "update"
label = "Update pages"
fields = ["update"]
required = ["update"]
set = { update = [true] }
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["command", "platform", "search", "list", "update", "clear_cache"]