Skip to content

chore: allow generation-input as folder that supplies config and vers…#3700

Merged
zhumin8 merged 4 commits intomainfrom
hermetic-input-output
Mar 17, 2025
Merged

chore: allow generation-input as folder that supplies config and vers…#3700
zhumin8 merged 4 commits intomainfrom
hermetic-input-output

Conversation

@zhumin8
Copy link
Copy Markdown
Contributor

@zhumin8 zhumin8 commented Mar 13, 2025

…ions file.

This change adds --generation-input option to generation command, only intend to be used when --generation-config-path is not provided. If none of these 2 provided, then default behavior does not change.

Also added a clean up to delete the temp output folder created in generation process. This should only be an improvement to local dev workflow.

cc. @ldetmer

@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Mar 13, 2025
@zhumin8 zhumin8 marked this pull request as ready for review March 14, 2025 16:08
…t and adjust unit test. Add another unit test.
@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

# does special handling when a method is annotated with @main.command()
generate_impl(
generation_config_path=config_path,
generation_input=None,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this change is needed for the unit test, but not for real usage, as when not specified "click" would pass it in as None.

Copy link
Copy Markdown
Contributor

@diegomarquezp diegomarquezp left a comment

Choose a reason for hiding this comment

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

LGTM

@zhumin8 zhumin8 merged commit fdfa9f3 into main Mar 17, 2025
51 of 53 checks passed
@zhumin8 zhumin8 deleted the hermetic-input-output branch March 17, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants