{
  "id": "mosh",
  "name": "Mosh",
  "description": "Mobile shell: a remote terminal that survives roaming and intermittent connectivity.",
  "homepage": "https://mosh.org",
  "executables": [
    "mosh"
  ],
  "commands": {
    "format": 1,
    "label": "Connect with Mosh",
    "description": "Open a Mosh session to a host. Server and client binary paths, bind-server and experimental IP discovery are left out.",
    "quality": "ai-draft",
    "base": "fig:mosh",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/mosh.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "host",
        "label": "Host",
        "description": "user@hostname",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "predict",
        "label": "Local echo prediction",
        "type": "enum",
        "option": [
          "--predict"
        ],
        "choices": [
          {
            "value": "adaptive",
            "label": "Adaptive"
          },
          {
            "value": "always",
            "label": "Always"
          },
          {
            "value": "never",
            "label": "Never"
          },
          {
            "value": "experimental",
            "label": "Experimental"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ssh",
        "label": "SSH command",
        "description": "Command used to set up the session, for example ssh -p 2222.",
        "type": "string",
        "option": [
          "--ssh"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ipv4",
        "label": "IPv4 only",
        "type": "boolean",
        "option": [
          "-4"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ipv6",
        "label": "IPv6 only",
        "type": "boolean",
        "option": [
          "-6"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_ssh_pty",
        "label": "No SSH pty",
        "description": "Do not allocate a pseudo tty on the ssh connection.",
        "type": "boolean",
        "option": [
          "--no-ssh-pty"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_init",
        "label": "No terminal init",
        "description": "Do not send the terminal initialization string.",
        "type": "boolean",
        "option": [
          "--no-init"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "connect",
        "label": "Connect",
        "fields": [
          "host",
          "predict",
          "ssh"
        ],
        "required": [
          "host"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "host",
          "ssh",
          "predict"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "ipv4",
          "ipv6",
          "no_ssh_pty",
          "no_init"
        ]
      }
    ]
  }
}
