{
  "id": "screen",
  "name": "GNU Screen",
  "homepage": "https://www.gnu.org/software/screen/",
  "description": "A full-screen window manager that multiplexes a physical terminal between several processes.",
  "executables": [
    "screen"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.screenrc"
    ],
    "exclude": [
      "~/.screen/"
    ],
    "secret": [],
    "secret_paths": [
      {
        "file": "~/.screenrc",
        "match": {
          "prefix": [
            "password"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "~/.screenrc",
        "match": {
          "prefix": [
            "shell ",
            "chdir"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "GNU Screen",
    "description": "Start or list screen sessions. Reattaching and detached start are separate sub-forms.",
    "quality": "ai-draft",
    "base": "fig:screen",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/screen.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "name",
        "label": "Session name",
        "type": "string",
        "option": [
          "-S"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "title",
        "label": "Window title",
        "type": "string",
        "option": [
          "-t"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "log",
        "label": "Log output",
        "type": "boolean",
        "option": [
          "-L"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "utf8",
        "label": "UTF-8 mode",
        "type": "boolean",
        "option": [
          "-U"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "history",
        "label": "Scrollback lines",
        "type": "integer",
        "option": [
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "shell",
        "label": "Shell",
        "type": "string",
        "option": [
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List sessions",
        "type": "boolean",
        "option": [
          "-ls"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "cmd",
        "label": "Command",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "args",
        "label": "Command arguments",
        "type": "string",
        "position": 1,
        "multiple": true,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "new",
        "label": "New named session",
        "fields": [
          "name",
          "title",
          "utf8",
          "cmd",
          "args"
        ],
        "required": [
          "name"
        ]
      },
      {
        "id": "list",
        "label": "List sessions",
        "fields": [
          "list"
        ],
        "required": [
          "list"
        ],
        "set": {
          "list": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "name",
          "title",
          "utf8",
          "cmd",
          "args",
          "list"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "log",
          "history",
          "config",
          "shell"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "-r"
        ],
        "label": "Reattach session",
        "description": "Resume a detached screen session.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/screen.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "id",
            "label": "Session",
            "type": "string",
            "position": 0,
            "description": "pid, pid.tty.host or a session name; empty resumes the only one.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "resume",
            "label": "Resume",
            "fields": [
              "id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "id"
            ]
          }
        ]
      },
      {
        "path": [
          "-dmS"
        ],
        "label": "Start detached session",
        "description": "Start a screen session in detached mode.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/screen.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Session name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "start",
            "label": "Start",
            "fields": [
              "name"
            ],
            "required": [
              "name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name"
            ]
          }
        ]
      }
    ]
  }
}
