{
  "id": "wezterm",
  "name": "WezTerm",
  "homepage": "https://wezterm.org",
  "description": "A GPU-accelerated cross-platform terminal emulator and multiplexer implemented in Rust.",
  "icon": "SimpleIcons:wezterm",
  "executables": [
    "wezterm",
    "wezterm-gui"
  ],
  "dotfiles": {
    "paths": [
      "~/.wezterm.lua",
      "~/.config/wezterm/"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "WezTerm",
    "description": "Start the GUI or open an SSH session in a new window. Multiplexer, font and recording commands are left out.",
    "quality": "ai-draft",
    "base": "fig:wezterm",
    "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/wezterm.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "start"
        ],
        "label": "Start WezTerm",
        "description": "Open a window, optionally running a program.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/wezterm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "prog",
            "label": "Program and arguments",
            "description": "Program to run instead of the default shell.",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cwd",
            "label": "Working directory",
            "type": "path",
            "option": [
              "--cwd"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "workspace",
            "label": "Workspace",
            "type": "string",
            "option": [
              "--workspace"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "class",
            "label": "Window class",
            "type": "string",
            "option": [
              "--class"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "always_new_process",
            "label": "Always start a new process",
            "type": "boolean",
            "option": [
              "--always-new-process"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_auto_connect",
            "label": "Skip auto-connect domains",
            "type": "boolean",
            "option": [
              "--no-auto-connect"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "start",
            "label": "Start window",
            "fields": [
              "cwd",
              "prog"
            ]
          },
          {
            "id": "new",
            "label": "Start new process",
            "fields": [
              "cwd",
              "always_new_process"
            ],
            "set": {
              "always_new_process": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "prog",
              "cwd",
              "always_new_process"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "class",
              "no_auto_connect",
              "workspace"
            ]
          }
        ]
      },
      {
        "path": [
          "ssh"
        ],
        "label": "SSH session",
        "description": "Connect to a host in a WezTerm window.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/wezterm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "User@host[:port]",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "prog",
            "label": "Remote program",
            "type": "string",
            "position": 1,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "class",
            "label": "Window class",
            "type": "string",
            "option": [
              "--class"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Trace SSH protocol",
            "type": "boolean",
            "option": [
              "-v"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "ssh",
            "label": "Connect",
            "fields": [
              "target",
              "prog"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "prog"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "class",
              "verbose"
            ]
          }
        ]
      }
    ]
  }
}
