-
Notifications
You must be signed in to change notification settings - Fork 150
Add dry run option to CLI #123
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
Conversation
czechboy0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! Just requested that we split the output color changes into a separate PR, and one other suggestion.
czechboy0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more minor requests, thanks.
czechboy0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
czechboy0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last request, otherwise lgtm.
|
@denil-ct Unfortunately #98 touched similar code as your PR, so there are a few conflicts you'll need to resolve before landing. Once that's all green, and #123 (comment) is addressed, we can land it. |
…rator into dry-run-cli # Conflicts: # Sources/swift-openapi-generator/GenerateCommand.swift # Sources/swift-openapi-generator/GenerateOptions+runGenerator.swift # Sources/swift-openapi-generator/runGenerator.swift
Motivation
Resolves #27
Modifications
Add a dry run option to CLI
--dry-runResult
If passed, the changes would be printed to terminal, without actually affecting the file system.
Test Plan
Manually tested with various input combinations.