mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

- Add some `odeprecated` - Make some `odeprecated` now `odisabled` - Remove `odisabled` code. - Remove old update migrations - Remove GCC 4.0 compiler - Remove Tiger-only code - Remove 32-bit-only code - Remove use of LD64 - Remove GCC 4.3 - 4.8 support.
32 lines
677 B
Ruby
32 lines
677 B
Ruby
#: * `prune` [`--dry-run`]:
|
|
#: Deprecated. Use `brew cleanup` instead.
|
|
|
|
require "keg"
|
|
require "cli_parser"
|
|
require "cleanup"
|
|
|
|
module Homebrew
|
|
module_function
|
|
|
|
def prune_args
|
|
Homebrew::CLI::Parser.new do
|
|
usage_banner <<~EOS
|
|
`prune` [<options>]
|
|
|
|
Deprecated. Use `brew cleanup` instead.
|
|
EOS
|
|
switch "-n", "--dry-run",
|
|
description: "Show what would be removed, but do not actually remove anything."
|
|
switch :verbose
|
|
switch :debug
|
|
end
|
|
end
|
|
|
|
def prune
|
|
prune_args.parse
|
|
|
|
odeprecated("'brew prune'", "'brew cleanup'")
|
|
Cleanup.new(dry_run: args.dry_run?).prune_prefix_symlinks_and_directories
|
|
end
|
|
end
|