{
  "id": "vitetris",
  "name": "vitetris",
  "homepage": "https://www.victornils.net/tetris/",
  "description": "Terminal-based Tetris clone.",
  "executables": [
    "vitetris",
    "tetris"
  ],
  "dotfiles": {
    "paths": [
      "~/.vitetris"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Play vitetris",
    "description": "Start the game with a few common startup options. Network play takes either a port to listen on or a host:port to connect to. Game and terminal options (see -help game, -help term) are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "manpage",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/vitetris/vitetris.6.en.html",
        "revision": "0.59.1",
        "evidence": "-nomenu\nSkip menus.\n-hiscores\nPrint highscore list and exit.\n-hiscores FILE\nRead and add highscore entries from FILE.\n-js0 DEVNAME\nJoystick device name (e.g. /dev/js0).\n-listen PORT\nListen for connections on port PORT.\n-connect HOSTNAME:PORT\nConnect to HOSTNAME on PORT.\n-name NAME\nIdentify yourself as NAME when connecting to other players.\nOptions may also be given as option=ARG, --option=ARG etc.\n"
      }
    ],
    "field": [
      {
        "id": "nomenu",
        "label": "Skip menus",
        "type": "boolean",
        "option": [
          "-nomenu"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "hiscores",
        "label": "Print high scores and exit",
        "type": "boolean",
        "option": [
          "-hiscores"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "listen",
        "label": "Listen on port",
        "description": "Host a network game on this port.",
        "type": "integer",
        "option": [
          "-listen"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "connect",
        "label": "Connect to host:port",
        "description": "HOSTNAME:PORT, or just a PORT to connect to localhost.",
        "type": "string",
        "option": [
          "-connect"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "name",
        "label": "Player name",
        "type": "string",
        "option": [
          "-name"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "joystick",
        "label": "Joystick device",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-js0"
        ],
        "sources": [
          "manpage"
        ]
      }
    ],
    "task": [
      {
        "id": "quick",
        "label": "Start playing",
        "fields": [
          "nomenu"
        ]
      },
      {
        "id": "host",
        "label": "Host a network game",
        "fields": [
          "listen",
          "name"
        ],
        "required": [
          "listen"
        ]
      },
      {
        "id": "join",
        "label": "Join a network game",
        "fields": [
          "connect",
          "name"
        ],
        "required": [
          "connect"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "nomenu",
          "hiscores",
          "name"
        ]
      },
      {
        "id": "advanced",
        "label": "Network and input",
        "fields": [
          "listen",
          "connect",
          "joystick"
        ]
      }
    ]
  }
}
