-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add project config override cli options #1454
Conversation
cli/index.ts
Outdated
const defaultDatabaseOption: INamedOption<yargs.Options> = { | ||
name: "default-database", | ||
option: { | ||
describe: "The default database to use. For BigQuery, this is a Google Cloud Project ID.", |
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.
we should clarify (for all of these) that they override any settings in dataform.json
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.
Thread above - this is for init, so does not override anything, and is a required flag in this case.
hi team, when is this PR merge or feature available? |
Examples:
|
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.
Please delete yarn-error.log
.
@@ -802,3 +735,191 @@ export function runCli() { | |||
yargs.showHelp(); | |||
} | |||
} | |||
|
|||
class ProjectConfigOptions { |
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.
I still find this structure confusing.
If we were only ever using these flags to construct ProjectConfig
, I'd buy it. But we don't; some flags are used for that sometimes, but for other uses other times.
I think this namespacing is more confusing than it's worth, to be honest.
* Add CLI override options for all project config fields * Add CLI override options for all project config fields * Label static methods as public due to dodgy linter on presubmit * Remove irrelavant if * de-dupe project config CLI flag definitions * Tidy method name * Bump version
Fixes #1295