Commit Graph

11 Commits

Author SHA1 Message Date
John Mair 312bb7eee4 command_class no longer alias for create_command
* removed as an alias
* converted remaining commands over to create_command
* removed references in tests
2012-01-22 12:17:43 +13:00
Conrad Irwin 49994f17ac Allow process() methods to take args too 2012-01-15 15:52:45 -08:00
Conrad Irwin e784a1a024 Make pry silent with RUBYOPT=-w 2012-01-15 12:21:28 -08:00
Conrad Irwin 76924d98b3 Don't clobber pre-existing options when adding new ones 2012-01-14 20:54:30 -08:00
Conrad Irwin 5b533fe4f1 Class command API polish 2012-01-08 12:49:24 -08:00
Conrad Irwin 45c6492e7e Split CommandProcessor responsibility between CommandSet and Command
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)
2012-01-03 01:35:32 +00:00
Conrad Irwin bb48077241 Remove parse_options! API
Having classy commands means it's much easier to implement, so we just
require those instead.
2011-12-31 16:05:14 +00:00
Conrad Irwin 5539f3bebb Make help use Slop where possible 2011-12-31 15:24:10 +00:00
Conrad Irwin 367b353bca Make target_self and command_name methods, not attributes 2011-12-31 15:24:10 +00:00
Conrad Irwin 7b0a5a346c Document Pry::Command 2011-12-31 12:40:01 +00:00
Conrad Irwin d221a22d02 Merge Pry::CommandContext and Pry::CommandSet::Command into Pry::Command 2011-12-31 11:54:41 +00:00