Open atbagga opened 5 years ago
@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?
Would something like this make sense - This is a interactive selection list with support for paginated options listing.
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.
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?