Add brew_reinstall rule (#816)

Replaces install with reinstall when a package is already installed.
This commit is contained in:
Iulian Onofrei
2018-05-22 20:25:05 +03:00
committed by Vladimir Iakovlev
parent f6e50bef82
commit 89207d6d7c
3 changed files with 48 additions and 0 deletions
+1
View File
@@ -305,6 +305,7 @@ The following rules are enabled by default on specific platforms only:
* `apt_upgrade` – helps you run `apt upgrade` after `apt list --upgradable`;
* `brew_cask_dependency` – installs cask dependencies;
* `brew_install` – fixes formula name for `brew install`;
* `brew_reinstall` &ndash; turns `brew install <formula>` into `brew reinstall <formula>`;
* `brew_link` &ndash; adds `--overwrite --dry-run` if linking fails;
* `brew_uninstall` &ndash; adds `--force` to `brew uninstall` if multiple versions were installed;
* `brew_unknown_command` &ndash; fixes wrong brew commands, for example `brew docto/brew doctor`;