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

refactor: Rework how we parse the option string. #40

Merged
merged 10 commits into from
Sep 26, 2024

Conversation

JeffFaer
Copy link
Collaborator

 - Instead of checking the string for each option that exists, loop
   through the string to discover which options have been specified
 - Split it out into a parser that's arguably overkill for what we're
   currently doing, but consider this as a prefactor for #29
Base automatically changed from jfaer/upgrade to main September 23, 2024 22:13
Copy link
Member

@KatrinaHoffert KatrinaHoffert left a comment

Choose a reason for hiding this comment

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

Neat approach.

keepsorted/options_test.go Show resolved Hide resolved
keepsorted/options.go Outdated Show resolved Hide resolved
keepsorted/options_parser.go Show resolved Hide resolved
@JeffFaer JeffFaer merged commit 9926a35 into main Sep 26, 2024
5 checks passed
@JeffFaer JeffFaer deleted the jfaer/parser_prefactor branch September 26, 2024 19:17
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