{
  "name": "tldr",
  "description": "A simpler man page than the existing man page",
  "options": [
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Display help for command"
    },
    {
      "names": [
        "-s",
        "--search"
      ],
      "description": "Search all pages for the query",
      "args": [
        {
          "name": "query"
        }
      ]
    },
    {
      "names": [
        "--linux"
      ],
      "description": "Show command page for Linux",
      "args": [
        {
          "generators": [
            {
              "script": [
                "bash",
                "-c",
                "command ls -Al ~/.tldrc/tldr/pages/linux/ 2>/dev/null"
              ]
            }
          ]
        }
      ]
    },
    {
      "names": [
        "--osx"
      ],
      "description": "Show command page for OSX",
      "args": [
        {
          "generators": [
            {
              "script": [
                "bash",
                "-c",
                "command ls -l ~/.tldrc/tldr/pages/osx/ 2>/dev/null"
              ]
            }
          ]
        }
      ]
    },
    {
      "names": [
        "--sunos"
      ],
      "description": "Show command page for SunOS",
      "args": [
        {
          "generators": [
            {
              "script": [
                "bash",
                "-c",
                "command ls -l ~/.tldrc/tldr/pages/sunos/ 2>/dev/null"
              ]
            }
          ]
        }
      ]
    },
    {
      "names": [
        "-l",
        "--list"
      ],
      "description": "Show all pages for current platform"
    },
    {
      "names": [
        "-u",
        "--update"
      ],
      "description": "Download the latest pages and generate search index"
    },
    {
      "names": [
        "-c",
        "--clear-cache"
      ],
      "description": "Delete the entire local cache"
    },
    {
      "names": [
        "--platform",
        "-p"
      ],
      "description": "Select platform",
      "args": [
        {
          "name": "platform",
          "suggestions": [
            "linux",
            "osx",
            "sunos",
            "windows",
            "common"
          ]
        }
      ]
    }
  ],
  "args": [
    {
      "template": "filepaths"
    }
  ]
}
