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

Add verbose values option to choice options #1775

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

aminabedi-bentley
Copy link

@aminabedi-bentley aminabedi-bentley commented Sep 13, 2022

Requirement:
I need to have verbose human-readable values options being shown to the user while having different values being set to the variable underneath. Example question for FooBarFlags variable:
Choices shown: 1-Foo 2- Bar 3- Both Foo and Bar
Actual values: 1- Foo 2- Bar 3-FooBar

Usage:

{
    "FooBarFlag": ["Foo", "Bar", ("Both Foo and Bar", "FooBar")]
}

Requirement:
I need to have verbose human-readable values options being shown to the user while having different values being set to the variable underneath.
Example question for FooBarFlags variable:
Choices shown: 1-Foo 2- Bar 3- Both Foo and Bar
Actual values: 1- Foo 2- Bar 3-FooBar

Usage:
{
"FooBarFlag": ["Foo", "Bar", ("Both Foo and Bar", "FooBar")]
}
Copy link
Member

@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aminabedi-bentley This seems like it could be a useful feature!

I'm not a maintainer but want to suggest these changes to make this ready for review:

  • Add tests that demonstrate that this feature is working
  • Add documentation so others can take advantage of this feature

Then, mark this PR as ready for review. Thanks!

@henryiii
Copy link
Contributor

henryiii commented Aug 7, 2023

This was added in #1881!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants