-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
separate code generation and docs generation #4061
Conversation
compiler.rb
Outdated
@@ -86,6 +88,12 @@ | |||
opt.on('-d', '--debug', 'Show all debug logs') do |_debug| | |||
Google::LOGGER.level = Logger::DEBUG | |||
end | |||
opt.on('-c', '--code', 'Generate code only') do |
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.
Would you consider doing this in the opposite direction? default to true, with flags for "--no-code" and "--no-docs"? I know it's a nitpick but that feels more consistent to me and more readable in scripts. Generally speaking a --flag adds behavior unless it starts with --no.
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.
@ndmckinley - i think i made the change you were looking for, let me know if i misinterpreted. thanks!!
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. How are you planning to test the downstream generation?
Fixes hashicorp/terraform-provider-google#7374
This PR allows separation of code generation and docs generation when needed. This will allow us to generate ga-code for TPG and beta-docs for TPG.
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)