Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve tab completions #20

Merged
merged 10 commits into from
Nov 17, 2015
Merged

improve tab completions #20

merged 10 commits into from
Nov 17, 2015

Conversation

jasonkarns
Copy link
Member

  • print ruby shims for completion
  • adds help, --help as subcommand for usage
  • handle verbose flag in case statement
  • accept --verbose as well as just -v

* nodenv/master:
  tab complete --help
  no sense tab-completing the short-form flag
  handle --complete in case statement
  use case for verbose flag (and add longform flag)
  add 'help' as first-class option
  add nodenv shims to nodenv-each completion
verbose=1
shift
;;
help | --help )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm 👎 about supporting rbenv each help (no dashes) usage. All flags should begin with a dash at least.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed. not sure what was in my head at the time

@jasonkarns
Copy link
Member Author

  • help removed as an option
  • removed shims from tab completion

shift
;;
--help )
rbenv-help --usage each
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should display full help for each, not just --usage

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the overall plan is --help prints full help, while minimal --usage is only printed when in error? There is inconsistency in this regard, so once decided in general, we can make the rest eventually consistent.

mislav added a commit that referenced this pull request Nov 17, 2015
@mislav mislav merged commit 08c7d4a into rbenv:master Nov 17, 2015
@mislav
Copy link
Member

mislav commented Nov 17, 2015

Thanks!

@jasonkarns jasonkarns deleted the completions branch November 17, 2015 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants