Skip to content

add support for generate --config - #436

Open
masariello wants to merge 1 commit into
bufbuild:mainfrom
masariello:feature/generate-config-option
Open

add support for generate --config#436
masariello wants to merge 1 commit into
bufbuild:mainfrom
masariello:feature/generate-config-option

Conversation

@masariello

Copy link
Copy Markdown

this PR adds support for the --config option of the generate command

@pkwarren pkwarren left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The changes look good but we should add a test to GenerateTest. See LintTest for some examples of config override tests.

The test should be written such that it would fail (or the results would differ) when buf generate is run with the default config vs. an override config.

internal abstract val outputDirectory: Property<File>

/** The input buf configuration file. */
@get:InputFiles

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
@get:InputFiles
@get:InputFile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants