id = "sw_vers" name = "sw_vers" description = "Print macOS version information." executables = ["sw_vers"] platforms = ["macos"] [commands] format = 1 label = "Show macOS version" description = "Print the macOS product name, version or build. With none selected all three are printed." quality = "ai-draft" base = "fig:sw_vers" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sw_vers.ts" license = "MIT" [[commands.field]] id = "product_name" label = "Product name" type = "boolean" option = ["-productName"] sources = ["fig"] [[commands.field]] id = "product_version" label = "Product version" type = "boolean" option = ["-productVersion"] sources = ["fig"] [[commands.field]] id = "build_version" label = "Build version" type = "boolean" option = ["-buildVersion"] sources = ["fig"] [[commands.task]] id = "version" label = "Product version only" set = { product_version = [true] } fields = ["product_version"] required = ["product_version"] [[commands.group]] id = "basic" label = "Basic" fields = ["product_name", "product_version", "build_version"]