{
  "id": "visudo",
  "name": "visudo",
  "description": "Edit the sudoers file safely.",
  "executables": [
    "visudo"
  ],
  "commands": {
    "format": 1,
    "label": "Check or edit sudoers",
    "description": "Syntax-check a sudoers file, or edit one with locking and validation. Needs root to edit the system file.",
    "quality": "ai-draft",
    "base": "fig:visudo",
    "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/visudo.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "check",
        "label": "Check only",
        "description": "Check the file for syntax errors without editing.",
        "type": "boolean",
        "option": [
          "--check",
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "file",
        "label": "Sudoers file",
        "description": "Alternative location instead of the system sudoers file.",
        "type": "path",
        "option": [
          "--file",
          "-f"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "strict",
        "label": "Strict checking",
        "type": "boolean",
        "option": [
          "--strict",
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "check",
        "label": "Check syntax",
        "set": {
          "check": [
            true
          ],
          "strict": [
            true
          ]
        },
        "lock": [
          "check"
        ],
        "fields": [
          "check",
          "file",
          "strict",
          "quiet"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "check",
          "file",
          "strict",
          "quiet"
        ]
      }
    ]
  }
}
