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

provide flag value autocomplete for --service-ref #383

Open
heyjcollins opened this issue Oct 17, 2022 · 1 comment
Open

provide flag value autocomplete for --service-ref #383

heyjcollins opened this issue Oct 17, 2022 · 1 comment

Comments

@heyjcollins
Copy link
Contributor

heyjcollins commented Oct 17, 2022

Description of problem

app devs appreciate efficiency and convenience.
providing broad support for autocompleting flag values makes it possible for people to NOT remember names of items added previously by them or others.

providing autocomplete for flag values inconsistently is a bad UX and we should do all that we can to consistently deliver on the contract.

Proposed solution

apps plugin already supports autocomplete for some flag values (e.g. --namespace --- will return list of possible namespaces)

Add similar support for --service-ref

When I've typed --service-ref then press <TAB>, all the current service-ref keys associated with my workload should be displayed AND (if possible) a list of any services available to be bound to the workload (excluding any service(s) already bound to the workload).

If I select an available service, I should be prompted to provide a key-name for the service, and once provided, the plugin should add a properly formatted key/value --service-ref flag/value for me.

@heyjcollins
Copy link
Contributor Author

@danfein - added "needs-design" here because I'd like your input on the somewhat more complicated autocompletion interactions described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant