{
  "id": "homebrew",
  "name": "Homebrew",
  "homepage": "https://brew.sh",
  "description": "The missing package manager for macOS and Linux.",
  "icon": "theSVG:homebrew",
  "executables": [
    "brew"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.Brewfile",
      "~/.homebrew/brew.env"
    ],
    "exclude": [
      "[cacheHome]/Homebrew/",
      "~/.Brewfile.lock.json"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": "~/.homebrew/brew.env",
        "match": {
          "prefix": [
            "HOMEBREW_CACHE",
            "HOMEBREW_TEMP"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Homebrew",
    "description": "Install, upgrade, uninstall and search formulae and casks. Taps, services, cleanup and developer commands are left out, as are cask directory options.",
    "quality": "ai-draft",
    "base": "fig:brew",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/brew.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install formulae or casks",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/brew.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "names",
            "label": "Formulae or casks",
            "type": "string",
            "position": 0,
            "description": "One or more names to install.",
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "formula",
            "label": "Formulae only",
            "type": "boolean",
            "option": [
              "--formula"
            ],
            "description": "Treat all named arguments as formulae.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cask",
            "label": "Casks only",
            "type": "boolean",
            "option": [
              "--cask"
            ],
            "description": "Treat all named arguments as casks.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "build_from_source",
            "label": "Build from source",
            "type": "boolean",
            "option": [
              "--build-from-source",
              "-s"
            ],
            "description": "Compile from source even if a bottle is provided.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "head",
            "label": "Install HEAD",
            "type": "boolean",
            "option": [
              "--HEAD"
            ],
            "description": "Install the HEAD version if the formula defines it.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "only_dependencies",
            "label": "Only dependencies",
            "type": "boolean",
            "option": [
              "--only-dependencies"
            ],
            "description": "Install the dependencies but not the formula itself.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Force",
            "type": "boolean",
            "option": [
              "--force",
              "-f"
            ],
            "description": "Install without checking for previously installed keg-only or non-migrated versions; for casks, overwrite existing files.",
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-v"
            ],
            "description": "Print the verification and postinstall steps.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "formula",
            "label": "Install a formula",
            "set": {
              "formula": [
                true
              ]
            },
            "fields": [
              "names",
              "formula",
              "verbose"
            ],
            "required": [
              "names"
            ]
          },
          {
            "id": "cask",
            "label": "Install a cask",
            "set": {
              "cask": [
                true
              ]
            },
            "fields": [
              "names",
              "cask",
              "verbose"
            ],
            "required": [
              "names"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "names",
              "formula",
              "cask",
              "verbose"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "build_from_source",
              "head",
              "only_dependencies",
              "force"
            ]
          }
        ]
      },
      {
        "path": [
          "upgrade"
        ],
        "label": "Upgrade outdated packages",
        "description": "Leave names empty to upgrade everything that is outdated.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/brew.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "names",
            "label": "Formulae or casks",
            "type": "string",
            "position": 0,
            "description": "Names to upgrade; empty upgrades all outdated.",
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run",
              "-n"
            ],
            "description": "Show what would be upgraded without upgrading.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "formula",
            "label": "Formulae only",
            "type": "boolean",
            "option": [
              "--formula",
              "--formulae"
            ],
            "description": "Treat all named arguments as formulae.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cask",
            "label": "Casks only",
            "type": "boolean",
            "option": [
              "--cask",
              "--casks"
            ],
            "description": "Treat all named arguments as casks.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "greedy",
            "label": "Include auto-updating casks",
            "type": "boolean",
            "option": [
              "--greedy"
            ],
            "description": "Also include casks with auto_updates true or version :latest.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-v"
            ],
            "description": "Print the verification and postinstall steps.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview upgrades",
            "set": {
              "dry_run": [
                true
              ]
            },
            "fields": [
              "names",
              "formula",
              "cask",
              "greedy"
            ],
            "required": []
          },
          {
            "id": "all",
            "label": "Upgrade everything",
            "fields": [
              "names",
              "formula",
              "cask",
              "greedy",
              "dry_run"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "names",
              "dry_run",
              "formula",
              "cask"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "greedy",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "uninstall"
        ],
        "label": "Uninstall a formula or cask",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/brew.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "names",
            "label": "Formulae or casks",
            "type": "string",
            "position": 0,
            "description": "One or more installed names to remove.",
            "multiple": true,
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "uninstall",
            "label": "Uninstall",
            "fields": [
              "names"
            ],
            "required": [
              "names"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "names"
            ]
          }
        ]
      },
      {
        "path": [
          "search"
        ],
        "label": "Search formulae and casks",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/brew.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "text",
            "label": "Search text",
            "type": "string",
            "position": 0,
            "description": "Substring or /regex/ to look for.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "formula",
            "label": "Formulae only",
            "type": "boolean",
            "option": [
              "--formula"
            ],
            "description": "Search online and locally for formulae.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cask",
            "label": "Casks only",
            "type": "boolean",
            "option": [
              "--cask"
            ],
            "description": "Search online and locally for casks.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "desc",
            "label": "Search descriptions",
            "type": "boolean",
            "option": [
              "--desc"
            ],
            "description": "Match descriptions of formulae and names of casks.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "search",
            "label": "Search",
            "fields": [
              "text",
              "formula",
              "cask",
              "desc"
            ],
            "required": [
              "text"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "text",
              "formula",
              "cask",
              "desc"
            ]
          }
        ]
      }
    ]
  }
}
