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

Numeric enums selection #6

Open
butvinm opened this issue Mar 18, 2023 · 0 comments
Open

Numeric enums selection #6

butvinm opened this issue Mar 18, 2023 · 0 comments

Comments

@butvinm
Copy link
Contributor

butvinm commented Mar 18, 2023

Add ability to choose enums items by numbers in addition to names

For example, for that enum

public enum Semester {
    FIFTH("fifth"),
    SIXTH("sixth"),
    SEVENTH("seventh"),
    EIGHTH("eighth");
}

CLI should output:

Choose semester:
0 - fifth
1 - sixth
2 - seventh
3 - eighth
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

No branches or pull requests

1 participant