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

Simple CLI #25

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Simple CLI #25

merged 1 commit into from
Feb 24, 2024

Conversation

hugelgupf
Copy link
Member

Cobra uses pflag, but I'd like to support standard Go flags so people can continue to use "-defaultsh" as they always did.

urfave/cli... I don't like the API.

So I wrote the simplest thing I could.

Copy link

codecov bot commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 94.28571% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 39.55%. Comparing base (3cf1942) to head (2eff84a).

Files Patch % Lines
cli/cli.go 94.28% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   36.31%   39.55%   +3.23%     
==========================================
  Files          17       18       +1     
  Lines         592      627      +35     
==========================================
+ Hits          215      248      +33     
- Misses        365      367       +2     
  Partials       12       12              
Flag Coverage Δ
1.21.x 43.97% <94.28%> (+3.32%) ⬆️
1.22.x 39.55% <94.28%> (+3.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

cobra forces the use of pflag, and urfave/cli has a flag API that
doesn't match my expectations. Let's do something simple.

Signed-off-by: Chris Koch <[email protected]>
@hugelgupf hugelgupf merged commit d2acac8 into main Feb 24, 2024
9 checks passed
@hugelgupf hugelgupf deleted the cli branch February 24, 2024 00:56
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.

1 participant