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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/xcode-select.ts" license = "MIT" [[commands.field]] id = "print_path" label = "Print active path" type = "boolean" option = ["-p", "--print-path"] sources = ["fig"] [[commands.field]] 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"] [[commands.field]] id = "install" label = "Install command line tools" type = "boolean" option = ["--install"] sources = ["fig"] [[commands.field]] id = "reset" label = "Reset to default" type = "boolean" option = ["-r", "--reset"] sources = ["fig"] [[commands.task]] id = "print" label = "Show active path" fields = ["print_path"] set = { print_path = [true] } lock = ["print_path"] required = [] [[commands.task]] id = "install" label = "Install command line tools" fields = ["install"] set = { install = [true] } lock = ["install"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["print_path", "switch", "install", "reset"]