{
  "id": "instead",
  "name": "INSTEAD",
  "homepage": "https://instead.hugeping.ru/",
  "description": "Interpreter of simple text adventures",
  "executables": [
    "instead",
    "sdl-instead"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.instead/insteadrc"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Play a game",
    "description": "Start the INSTEAD interpreter with a game and display options. Developer tools (-encode, -idf, -lua, -luac), installation and profile options are outside this form.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/bookworm/instead/instead.6.en.html",
        "revision": "3.3.2-1.1",
        "evidence": "sdl-instead [options] [game.zip or game.idf or path to game]\n-nosound Run the game without sound.\n-gamespath <path> Add path with games.\n-game <basename> Select game in gamespath.\n-theme <basename> Select theme in themespath.\n-fullscreen Run the game in fullscreen mode.\n-window Run the game in windowed mode.\n-scale <scale> Scale window (SDL2 only)\n-noautosave Disable autosave load.\n-lang <lang code> Select language.\n-noconfig Do not load saved config (run with defaults).\n"
      }
    ],
    "field": [
      {
        "id": "game_path",
        "label": "Game file or folder",
        "description": "A game.zip, game.idf or game directory. Leave empty to pick from the games list.",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input"
        },
        "position": 0,
        "sources": [
          "man"
        ]
      },
      {
        "id": "game",
        "label": "Game name in games path",
        "type": "string",
        "option": [
          "-game"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "gamespath",
        "label": "Extra games folder",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "option": [
          "-gamespath"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "theme",
        "label": "Theme",
        "type": "string",
        "option": [
          "-theme"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "fullscreen",
        "label": "Fullscreen",
        "type": "boolean",
        "option": [
          "-fullscreen"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "window",
        "label": "Windowed",
        "type": "boolean",
        "option": [
          "-window"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "scale",
        "label": "Window scale",
        "type": "number",
        "option": [
          "-scale"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "nosound",
        "label": "No sound",
        "type": "boolean",
        "option": [
          "-nosound"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "lang",
        "label": "Language code",
        "type": "string",
        "option": [
          "-lang"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "noautosave",
        "label": "Disable autosave load",
        "type": "boolean",
        "option": [
          "-noautosave"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "noconfig",
        "label": "Ignore saved config",
        "type": "boolean",
        "option": [
          "-noconfig"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "play",
        "label": "Play a game",
        "fields": [
          "game_path",
          "fullscreen"
        ],
        "required": [
          "game_path"
        ]
      },
      {
        "id": "play_quiet",
        "label": "Play without sound",
        "fields": [
          "game_path",
          "nosound"
        ],
        "required": [
          "game_path"
        ],
        "set": {
          "nosound": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "game_path",
          "fullscreen",
          "window",
          "nosound"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "game",
          "gamespath",
          "theme",
          "scale",
          "lang",
          "noautosave",
          "noconfig"
        ]
      }
    ]
  }
}
