diff --git a/lib/pry/command_set.rb b/lib/pry/command_set.rb index e3b066ff..ff934430 100644 --- a/lib/pry/command_set.rb +++ b/lib/pry/command_set.rb @@ -263,13 +263,13 @@ class Pry commands.delete(cmd.match) end - def deprecated_command(name_of_deprecated_command, deprecation_message, matcher=name_of_deprecated_command) - create_command name_of_deprecated_command do + def disabled_command(name_of_disabled_command, message, matcher=name_of_disabled_command) + create_command name_of_disabled_command do match matcher description "" define_method(:process) do - output.puts "DEPRECATED: #{deprecation_message}" + output.puts "DISABLED: #{message}" end end end diff --git a/lib/pry/commands/deprecated_commands.rb b/lib/pry/commands/deprecated_commands.rb deleted file mode 100644 index a8c05c6d..00000000 --- a/lib/pry/commands/deprecated_commands.rb +++ /dev/null @@ -1,2 +0,0 @@ -Pry::Commands.deprecated_command("edit-method", "Use `edit` instead.") -Pry::Commands.deprecated_command("show-command", "Use show-source [command_name] instead.") diff --git a/lib/pry/commands/disabled_commands.rb b/lib/pry/commands/disabled_commands.rb new file mode 100644 index 00000000..9866f901 --- /dev/null +++ b/lib/pry/commands/disabled_commands.rb @@ -0,0 +1,2 @@ +Pry::Commands.disabled_command("edit-method", "Use `edit` instead.") +Pry::Commands.disabled_command("show-command", "Use show-source [command_name] instead.")