{
  "id": "xcode-select",
  "name": "xcode-select",
  "description": "Selects the active developer directory for Xcode and command line tools.",
  "executables": [
    "xcode-select"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Manage the developer directory",
    "description": "Show or change the active developer directory.",
    "quality": "ai-draft",
    "base": "fig:xcode-select",
    "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/xcode-select.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "print_path",
        "label": "Print active path",
        "type": "boolean",
        "option": [
          "-p",
          "--print-path"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "switch",
        "label": "Switch to directory",
        "description": "Usually requires sudo.",
        "type": "path",
        "option": [
          "-s",
          "--switch"
        ],
        "path": {
          "kind": "directory",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "install",
        "label": "Install command line tools",
        "type": "boolean",
        "option": [
          "--install"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "reset",
        "label": "Reset to default",
        "type": "boolean",
        "option": [
          "-r",
          "--reset"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "print",
        "label": "Show active path",
        "fields": [
          "print_path"
        ],
        "set": {
          "print_path": [
            true
          ]
        },
        "lock": [
          "print_path"
        ],
        "required": []
      },
      {
        "id": "install",
        "label": "Install command line tools",
        "fields": [
          "install"
        ],
        "set": {
          "install": [
            true
          ]
        },
        "lock": [
          "install"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "print_path",
          "switch",
          "install",
          "reset"
        ]
      }
    ]
  }
}
