Skip to content

Enhancement: Extend prompt behavior for required autocomplete fields #5561

@martinlingstuyl

Description

@martinlingstuyl

Related to issue #5560.

We could help users with better prompting features.

We currently have a prompting feature that prompts users to fill in values for required fields... which is awesome.

However, the user always has to fill in the value manually.

💡 Idea

When an option is required and has a 'autocomplete' values, we can prompt the user to select the correct value from a list, instead of them having to type it manually. An example of this is the aad app role add command which has an --allowedMembers option with configured autocomplete.

⚙️ Implementation

We can implement this in the validateRequiredOptions function in the Command.ts file.
The autocomplete values are available there

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions