Mislav Marohnić
34246f9f2e
Have rbenv-uninstall respect -h|--help
2014-11-26 20:46:44 -08:00
Mislav Marohnić
4a6b9280bb
Provide CLI usage help on stout/stderr appropriately
...
When requested via `-h|--help`, usage text should be displayed on stdout
and the exit status should be 0.
When usage text is shown due to invalid arguments, it should be
printed to stderr and exit status should be 1.
2014-11-26 20:46:44 -08:00
Mislav Marohnić
22c73bf3f5
Perform CLI argument validation as early as possible
2014-11-26 20:46:44 -08:00
Ivan Kuchin
fa38b660e2
Abort with usage help on wrong number of CLI arguments
...
- rbenv-install accepts 0 or 1 argument
- rbenv-uninstall accepts 1 argument
- ruby-build accepts 2 arguments
2014-11-26 20:45:53 -08:00
Mislav Marohnić
4d8319bde7
Call rbenv-* subcommands directly, not through the rbenv executable
...
Benefits:
- makes it easier to stub `rbenv-*` subcommands in tests
- speeds up subcommands because it skips the main `rbenv` executable
Caveats:
- users are no longer able to call `bin/rbenv-install` or
`rbenv-uninstall` directly
2014-01-05 18:58:57 +01:00
Mislav Marohnić
24ff49ccc0
Support rbenv hook paths that have spaces
...
Same approach taken in rbenv: sstephenson/rbenv@baf7656d
2014-01-05 18:58:57 +01:00
Yamashita Yuu
92b32f545b
Add before/after hooks for rbenv uninstall
2014-01-05 18:58:57 +01:00
Sam Stephenson
8372808980
Confirm reinstalling already-installed versions unless invoked with --force
2013-01-29 17:22:56 -06:00
Sam Stephenson
b9474ae1db
Add summary lines for rbenv install and rbenv uninstall
2012-12-30 15:25:52 -06:00
Sam Stephenson
643ea84b3f
Delegate to rbenv-help for usage, if available
2012-12-30 15:10:57 -06:00
Sam Stephenson
b4d3ed74a0
"Available" -> "Installed"
2012-08-15 15:08:53 -05:00
Sam Stephenson
aee4782095
rbenv-uninstall prompts before removal unless invoked with -f
2012-08-14 23:08:31 -05:00
Andreas Loupasakis
6d4af03042
Implement rbenv-uninstall command
2012-08-14 18:51:53 -05:00