spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.

Home Page:https://spectreconsole.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return a tuple with the group name and the chosen option

jos3s opened this issue · comments

Is your feature request related to a problem? Please describe.

I'm setting up a project that needs to allow the user to select a group and a value within that group. The way I'm doing it now, the user selects these values in separate steps, first I display the groups with a SelectionPrompt, then I set up another SelectionPrompt with the options that would be in that group.

Describe the solution you'd like
Would it be possible for the SelectionPrompt to return an object with two properties: the group name and the selected value?
image

Describe alternatives you've considered
N/A

Additional context
N/A


Please upvote 👍 this issue if you are interested in it.