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

certs: move default values to Go vars #2971

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

mastercactapus
Copy link
Member

Description:
Updates cmdcerts.go to store default values in the Go variables instead of relying on flag parser side effects.

No change to the command behavior, but it makes it easier to see/process default values for human and static-analysis tools alike.

Updates command flag parsing to use vars as defaults, making it easier to follow.
@mastercactapus mastercactapus merged commit 9d9c5b3 into master Apr 26, 2023
@mastercactapus mastercactapus deleted the cmd-certs-defaults branch April 26, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants