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

switch from flags to cobra #3884

Merged
merged 1 commit into from
Dec 29, 2022
Merged

switch from flags to cobra #3884

merged 1 commit into from
Dec 29, 2022

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Dec 16, 2022

Signed-off-by: Avi Deitcher avi@deitcher.net

- What I did

Replaced all of our custom flag handling with spf13/cobra

Provides much greater simplicity, reduces the need to handle things like help, number of arguments, etc.,
makes it easier to add features, aliases built in.

It also gives us things like persistent flags, so we can set cache-dir once, and verbose/quiet once/

- How I did it

Slowly and painfully

- How to verify it

CI

- Description for the changelog

Use modern flag libraries

@deitch deitch force-pushed the cobra branch 11 times, most recently from 60bb619 to b6e0643 Compare December 18, 2022 11:10
Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch
Copy link
Collaborator Author

deitch commented Dec 18, 2022

Ah, lovely, CI finally green.

@deitch deitch merged commit 154f943 into linuxkit:master Dec 29, 2022
@deitch deitch deleted the cobra branch December 29, 2022 08:32
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.

None yet

1 participant