17 Commits

Author SHA1 Message Date
apainintheneck
fe83500617 Moved autoremove logic into cleanup.rb and formula.rb
Cleanup.rb:
- Added #autoremove method
- #autoremove is called in clean when HOMEBREW_AUTOREMOVE is set

Formula.rb:
- Added #unused_formulae_with_no_dependents and helpers

Removed old autoremove.rb module.
2022-07-14 13:16:26 -07:00
apainintheneck
fa43418bfb Moved autoremove logic into autoremove.rb
This allows us to call that logic internally in other brew
commands instead of having to shell out.
2022-07-13 16:31:41 -07:00
apainintheneck
74f1eca14c autoremove.rb: moved logic out into formula.rb, and uninstall.rb
This allows us to autoremove formulae in the autoremove and
uninstall commands without having to shell out to brew.
2022-07-13 16:28:49 -07:00
hyuraku
1fd4c4d840 rename variables and repair style 2022-01-07 21:05:36 +09:00
hyuraku
37945a407e repair cask formulae autoremove 2022-01-06 22:33:27 +09:00
Logicer
e7b71eef22 autoremove: Return when not removing 2021-12-31 11:51:18 +11:00
hyuraku
4fb6a84139 repair if condition and style 2021-12-29 23:07:11 +09:00
hyuraku
65ddf19609 cmd/autoremove recognize cask dependencies 2021-12-28 11:48:58 +09:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
EricFromCanada
72bc057014 manpage: fixes for formatting 2020-11-16 08:02:50 -05:00
Tie
8b4197dd10 make suggestions round 2 2020-11-06 10:36:21 -05:00
Tie
afd7bb8889 make suggestions 2020-11-05 12:27:22 -05:00
Tie
b5427e5095 fix style issues 2020-11-04 18:53:03 -05:00
Tie
10ae9bcde7 modify autoremove to use uninstall 2020-11-04 17:15:32 -05:00
Dawid Dziurla
0fa417706a cmd: add autoremove command 2020-11-04 17:15:32 -05:00