{
  "description": "Open television on a channel or an ad-hoc source command, optionally with a preview command. UI layout, keybinding and template options are left out.",
  "options": [
    {
      "names": [
        "--source-command",
        "-s"
      ],
      "description": "Overrides the channel's command, or defines an ad-hoc channel when no channel is given.",
      "args": {
        "name": "source_command",
        "description": "Overrides the channel's command, or defines an ad-hoc channel when no channel is given.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--preview-command",
        "-p"
      ],
      "description": "Use {} for the selected entry, e.g. cat {}.",
      "args": {
        "name": "preview_command",
        "description": "Use {} for the selected entry, e.g. cat {}.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--input",
        "-i"
      ],
      "description": "Initial query",
      "args": {
        "name": "input",
        "isOptional": false
      }
    },
    {
      "names": [
        "--exact"
      ],
      "description": "Substring matching"
    },
    {
      "names": [
        "--select-1"
      ],
      "description": "Auto-select a single match"
    },
    {
      "names": [
        "--no-sort"
      ],
      "description": "Keep source order"
    },
    {
      "names": [
        "--ansi"
      ],
      "description": "Parse ANSI colors"
    },
    {
      "names": [
        "--no-preview"
      ],
      "description": "No preview panel"
    },
    {
      "names": [
        "--layout"
      ],
      "description": "Layout",
      "args": {
        "name": "layout",
        "isOptional": false,
        "suggestions": [
          {
            "name": "landscape",
            "description": "Landscape"
          },
          {
            "name": "portrait",
            "description": "Portrait"
          }
        ]
      }
    },
    {
      "names": [
        "--inline"
      ],
      "description": "Inline interface"
    },
    {
      "names": [
        "--height"
      ],
      "description": "Height (lines)",
      "args": {
        "name": "height",
        "isOptional": false
      }
    }
  ],
  "args": [
    {
      "name": "channel",
      "description": "Leave empty with a source command for an ad-hoc channel. Run tv list-channels to see channels.",
      "isOptional": true,
      "suggestions": [
        {
          "name": "files",
          "description": "files"
        },
        {
          "name": "text",
          "description": "text"
        },
        {
          "name": "git-repos",
          "description": "git-repos"
        }
      ]
    },
    {
      "name": "path",
      "isOptional": true,
      "template": "folders"
    }
  ],
  "name": "tv"
}
