microsoft / microsoft/knack

Support for more user friendly choice lists

Open
#134 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/arguments area/completion type/enhancement
Dominant language
Python
Stars
358
Forks
101
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing knack's existing number-based prompt choice list and the linked pick project to understand the requested interaction. Compare this with the Azure CLI behavior, then define the supported choice-list behavior and verify that it works consistently for CLI tools built on knack.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.