* Example, using &block:
Pry.commands.command "tobina", "desc", :takes_block => true do |&block|
block.call
end
(pry)> tobina { puts "hi" }
hi
(pry)>
* Works with process(&block) too (for create_command)
* Works with do/end blocks and {} blocks, both single and multi-line
* Example, using command_block:
Pry.commands.command "tobina", "desc", :takes_block => true do
command_block.call
end
The CommandSet is responsible for storing Commands, while the Commands
themselves are responsible for all the parsing.
(Before this change, the CommandProcessor used to do both the searching
within the CommandSet's and also the tokenization of command arguments)