cask: Add TODOs to deprecate integrated cask cmds
This commit is contained in:
parent
5f8b20849d
commit
b123fca227
@ -47,6 +47,16 @@ module Cask
|
|||||||
"dr" => "doctor",
|
"dr" => "doctor",
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
|
DEPRECATED_COMMANDS = {
|
||||||
|
Cmd::Cache => "brew --cache --cask",
|
||||||
|
Cmd::Doctor => "brew doctor --verbose",
|
||||||
|
Cmd::Home => "brew home",
|
||||||
|
Cmd::List => "brew list --cask",
|
||||||
|
Cmd::Outdated => "brew outdated --cask",
|
||||||
|
Cmd::Reinstall => "brew reinstall",
|
||||||
|
Cmd::Upgrade => "brew upgrade --cask",
|
||||||
|
}.freeze
|
||||||
|
|
||||||
def self.description
|
def self.description
|
||||||
max_command_len = Cmd.commands.map(&:length).max
|
max_command_len = Cmd.commands.map(&:length).max
|
||||||
|
|
||||||
@ -212,6 +222,11 @@ module Cask
|
|||||||
detect_external_command(*argv) ||
|
detect_external_command(*argv) ||
|
||||||
[args.remaining.empty? ? NullCommand : UnknownSubcommand.new(args.remaining.first), argv]
|
[args.remaining.empty? ? NullCommand : UnknownSubcommand.new(args.remaining.first), argv]
|
||||||
|
|
||||||
|
# TODO: enable for next major/minor release
|
||||||
|
# if (replacement = DEPRECATED_COMMANDS[command])
|
||||||
|
# odeprecated "brew cask #{command.command_name}", replacement
|
||||||
|
# end
|
||||||
|
|
||||||
if args.help?
|
if args.help?
|
||||||
puts command.help
|
puts command.help
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user