got rid of `target` parameter to CommandBase `run` command, no idea
why it was there in the first place?
This commit is contained in:
parent
eba93ad7b7
commit
1dafe61d16
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue