{
  "id": "killall",
  "name": "killall",
  "description": "Kill processes by name.",
  "executables": [
    "killall"
  ],
  "commands": {
    "format": 1,
    "label": "Signal processes by name",
    "description": "Send a signal to every process matching a name. Other signal spellings (-SIGxxx) beyond HUP, INT and KILL are left out.",
    "quality": "ai-draft",
    "base": "fig:killall",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "src",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/killall.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "names",
        "label": "Process names",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "src"
        ]
      },
      {
        "id": "sighup",
        "label": "Send HUP",
        "description": "Send HUP instead of TERM.",
        "type": "boolean",
        "option": [
          "-SIGHUP"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "sigint",
        "label": "Send INT",
        "description": "Send INT instead of TERM.",
        "type": "boolean",
        "option": [
          "-SIGINT"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "sigkill",
        "label": "Send KILL",
        "description": "Send KILL instead of TERM.",
        "type": "boolean",
        "option": [
          "-SIGKILL"
        ],
        "effect": "delete",
        "sources": [
          "src"
        ]
      },
      {
        "id": "interactive",
        "label": "Confirm each",
        "description": "Request confirmation before killing each process.",
        "type": "boolean",
        "option": [
          "-I"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "regex",
        "label": "Match as regex",
        "description": "Match the process name as a regular expression.",
        "type": "boolean",
        "option": [
          "-m"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "user",
        "label": "Limit to user",
        "description": "Only processes belonging to this user.",
        "type": "string",
        "option": [
          "-u"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "tty",
        "label": "Limit to TTY",
        "description": "Only processes running on this TTY.",
        "type": "string",
        "option": [
          "-t"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "description": "Be verbose.",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "description": "Suppress the error message if no processes match.",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "zombies",
        "label": "Include zombies",
        "description": "Do not skip zombies.",
        "type": "boolean",
        "option": [
          "-z"
        ],
        "sources": [
          "src"
        ]
      }
    ],
    "task": [
      {
        "id": "terminate",
        "label": "Terminate by name",
        "fields": [
          "names",
          "interactive"
        ],
        "required": [
          "names"
        ]
      },
      {
        "id": "force",
        "label": "Force kill by name",
        "fields": [
          "names",
          "sigkill"
        ],
        "required": [
          "names",
          "sigkill"
        ],
        "set": {
          "sigkill": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "names",
          "sigkill",
          "interactive",
          "regex",
          "user",
          "verbose"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "sighup",
          "sigint",
          "tty",
          "quiet",
          "zombies"
        ]
      }
    ]
  }
}
