Skip to content

refactor(cmd): Use os.Exit(1) only from main()#1398

Merged
jamietanna merged 1 commit intooapi-codegen:masterfrom
alexandear-org:refactor-cmd-exit
Jan 23, 2024
Merged

refactor(cmd): Use os.Exit(1) only from main()#1398
jamietanna merged 1 commit intooapi-codegen:masterfrom
alexandear-org:refactor-cmd-exit

Conversation

@alexandear
Copy link
Copy Markdown
Contributor

@alexandear alexandear commented Dec 20, 2023

This PR refactors newConfigFromOldConfig to return error instead of just exiting. This improves readability.

@jamietanna jamietanna self-requested a review January 10, 2024 11:24
Copy link
Copy Markdown
Member

@jamietanna jamietanna left a comment

Choose a reason for hiding this comment

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

Thank you!

@jamietanna jamietanna added the bug Something isn't working label Jan 23, 2024
@jamietanna jamietanna merged commit d326c01 into oapi-codegen:master Jan 23, 2024
@jamietanna jamietanna changed the title refactor(cmd): Use os.Exit(1) only from main() refactor(cmd): Use os.Exit(1) only from main() Jan 25, 2024
@alexandear alexandear deleted the refactor-cmd-exit branch October 14, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants