got rid of `target` parameter to CommandBase `run` command, no idea

why it was there in the first place?
This commit is contained in:
John Mair 2011-04-17 00:18:30 +12:00
parent eba93ad7b7
commit 1dafe61d16
1 changed files with 2 additions and 3 deletions

View File

@ -79,18 +79,17 @@ class Pry
end
# Execute a command (this enables commands to call other commands).
# @param [Binding] target The current target object.
# @param [String] name The command to execute
# @param [Array] args The parameters to pass to the command.
# @example Wrap one command with another
# class MyCommands < Pry::Commands
# command "ls2" do
# output.puts "before ls"
# run target, "ls"
# run "ls"
# output.puts "after ls"
# end
# end
def run(target, name, *args)
def run(name, *args)
command_processor = CommandProcessor.new(target.eval('_pry_'))
if command_processor.system_command?(name)