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

Add tab-completion of positional and named values #285

Open
seaneagan opened this issue Jul 9, 2015 · 0 comments
Open

Add tab-completion of positional and named values #285

seaneagan opened this issue Jul 9, 2015 · 0 comments

Comments

@seaneagan
Copy link
Contributor

Followup of #281 in support of #175.

For example assume we have:

@Task()
bump(
    @Positional(allowed: const ['major', 'minor', 'patch', 'build', 'release'])
    String releaseType) {
  new PubApp.global('den').run(['bump', releaseType]);
}

Then the user should get the following completions:

grind bump:[TAB]
major
minor
patch
build
release

And similarly for options:

@Task()
bump(
    {@Option(allowed: const ['major', 'minor', 'patch', 'build', 'release'])
    String releaseType: 'patch') {
  new PubApp.global('den').run(['bump', releaseType]);
}
grind:bump --release-type [TAB]
major
minor
patch
build
release
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

No branches or pull requests

1 participant