1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec
Kyrylo Silin cf786881bb Extend ClassCommand so it can define sub commands
Create `ClassCommand::Options` class, which ties up sub commands and
default options together.

Let's consider the command `food make --tea`. `food` is a command,
`make` is a sub command and `--tea` is an option of `make` sub command.
We can access `--tea` via `opts[:make][:tea].

Also, we can check the freshness of our food like so: `food --freshness`.
`--freshness` is a default option. We can access it like so:
`opts.freshness?` or `opts[:freshness]`.

Add unit tests for `ClassCommand::Option` and some other tests that
reflect the additions.

Finally, document everything and fix different typos in the existing
documentation.

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2012-11-23 13:41:44 +02:00
..
commands Revert "Make whereami more consistent (and less cheeky) [Fixes #383]" 2012-11-18 16:42:29 -08:00
fixtures More spec fixtures around 2012-11-18 01:33:32 -08:00
candidate_helper1.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
candidate_helper2.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
cli_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
code_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
command_helpers_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
command_integration_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
command_set_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
command_spec.rb Extend ClassCommand so it can define sub commands 2012-11-23 13:41:44 +02:00
completion_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
control_d_handler_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
example_nesting.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
exception_whitelist_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
helper.rb Revert "Make whereami more consistent (and less cheeky) [Fixes #383]" 2012-11-18 16:42:29 -08:00
history_array_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
hooks_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
indent_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
input_stack_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
method_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
prompt_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
pry_defaults_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
pry_history_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
pry_output_spec.rb Fix specs on jruby-19mode on travis 2012-11-18 01:42:22 -08:00
pry_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
sticky_locals_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
syntax_checking_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
testrc Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
testrcbad Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
wrapped_module_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00