{
  "description": "Create a new tmate (tmux fork) session. Only new-session is modelled; control mode, sockets and other commands are left out.",
  "name": "tmate",
  "subcommands": [
    {
      "name": "new-session",
      "description": "Create a new session, optionally detached and with a name, directory and initial command.",
      "options": [
        {
          "names": [
            "-s"
          ],
          "description": "Session name",
          "args": {
            "name": "session_name",
            "isOptional": false
          }
        },
        {
          "names": [
            "-n"
          ],
          "description": "Window name",
          "args": {
            "name": "window_name",
            "isOptional": false
          }
        },
        {
          "names": [
            "-c"
          ],
          "description": "Start directory",
          "args": {
            "name": "start_directory",
            "isOptional": false,
            "template": "folders"
          }
        },
        {
          "names": [
            "-d"
          ],
          "description": "Do not attach to the current terminal."
        },
        {
          "names": [
            "-A"
          ],
          "description": "Attach if session exists"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Width (detached)",
          "args": {
            "name": "width",
            "isOptional": false
          }
        },
        {
          "names": [
            "-y"
          ],
          "description": "Height (detached)",
          "args": {
            "name": "height",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "shell_command",
          "description": "Command to run in the initial window.",
          "isOptional": true
        }
      ]
    }
  ]
}
