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

Implement flexible parameters and add static constructor #7

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

mishagp
Copy link
Owner

@mishagp mishagp commented Dec 19, 2023

Inspired by #3, wanted to add a simple and flexible API to configure commands.

I think the idea will be to add more structured, typed, param-specific implementations (i.e. the current thread limit config option) as requested/contributed but use the approach in this PR in the meantime. Also, it's not feasible to catch up with updates to ocrmypdf and add really close integration to versioning there so this was always necessary.

Also added a static constructor to make for cleaner overall syntax for usage.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (96a52b1) 94.14% compared to head (d3d2cb2) 94.59%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main       #7      +/-   ##
============================================
+ Coverage     94.14%   94.59%   +0.44%     
- Complexity       69       76       +7     
============================================
  Files             3        3              
  Lines           205      222      +17     
============================================
+ Hits            193      210      +17     
  Misses           12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mishagp mishagp linked an issue Dec 19, 2023 that may be closed by this pull request
@mishagp mishagp merged commit b7e5ba7 into main Dec 19, 2023
12 checks passed
@mishagp mishagp deleted the add-flexible-parameters branch December 19, 2023 02:34
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.

Any change for param options?
1 participant