{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/tldr.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "command",
        "label": "Command",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "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"
        ]
      },
      {
        "id": "search",
        "label": "Search all pages",
        "type": "string",
        "option": [
          "-s",
          "--search"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List pages",
        "type": "boolean",
        "option": [
          "-l",
          "--list"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "update",
        "label": "Update page cache",
        "type": "boolean",
        "option": [
          "-u",
          "--update"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "clear_cache",
        "label": "Clear local cache",
        "type": "boolean",
        "option": [
          "-c",
          "--clear-cache"
        ],
        "effect": "delete",
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "lookup",
        "label": "Look up a command",
        "fields": [
          "command",
          "platform"
        ],
        "required": [
          "command"
        ]
      },
      {
        "id": "update",
        "label": "Update pages",
        "fields": [
          "update"
        ],
        "required": [
          "update"
        ],
        "set": {
          "update": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "command",
          "platform",
          "search",
          "list",
          "update",
          "clear_cache"
        ]
      }
    ]
  }
}
