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

More menu options #185

Closed
wants to merge 8 commits into from
Closed

More menu options #185

wants to merge 8 commits into from

Conversation

matrinox
Copy link
Contributor

matrinox added 8 commits January 24, 2016 18:35
By encapsulating menu items in a struct, it's easier to add more fields like text
Instead of keeping name and text the same, they are now decoupled: user inputs match name while text is what's displayed in the terminal
…oice

Originally, build_responses gave precedence to new hash (which makes sense) but then old hash was given precedence because it allowed the user to set things and let that stick
Instead, the solution should be to split the concerns: one hash for user one hash for internal. The hashes are then merged when outputting, giving the user responses precedence
This does have the side effect of taking away responses reflection on the side of the client but that is easily added in build_responses
You can use existing color options or color schemes defined in HighLine::ColorScheme
This simple hack removes implemenation knowledge and allows the client to construct the string they are used to
@abinoam
Copy link
Collaborator

abinoam commented Feb 19, 2016

Are you planning to rebase this branch on top of the master branch? Or are we going to close this PR?

@matrinox
Copy link
Contributor Author

I'll close it for now

@matrinox matrinox closed this Feb 21, 2016
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.

2 participants