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

Support for more user friendly choice lists #134

Open
atbagga opened this issue Dec 5, 2018 · 2 comments
Open

Support for more user friendly choice lists #134

atbagga opened this issue Dec 5, 2018 · 2 comments

Comments

@atbagga
Copy link
Contributor

atbagga commented Dec 5, 2018

From what I know prompt choice list which is number based selection is the one provided by knack as of now.

Can we have a more user friendly choice list available through knack? Something like pick or some other similar alternatives.

This will help in standardizing the behaviour across various CLI tool based on knack.

If there is a reason to stay with the numerical selection list as supported today, then sharing that would be fine :)

Background: I am working on a azure cli extension and I want to use things like spinner (for waiting behavior), and choice list for options selection. I would want to be consistent with the azure cli as well. So started looking into whether knack or azure cli already has a precedence in this regard on what to use?

@atbagga
Copy link
Contributor Author

atbagga commented Dec 6, 2018

@derekbekoe @tjprescott Does this make sense for Knack or Azure cli?
Any thoughts on changing the default prompt-list function supported in Knack as of today?

@atbagga
Copy link
Contributor Author

atbagga commented May 31, 2019

Would something like this make sense - This is a interactive selection list with support for paginated options listing.

image

Sample Code: https://github.com/atbagga/PythonSamples/blob/996a4f3a271195a1cb95f0da24da1ece9759cdaf/promptlist.py#L1

If yes, I can refine the experience and code to raise a PR.

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

2 participants