-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[CLI] az bicep decompile-params: Add --force option to overwrite existing file
#32739
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
base: dev
Are you sure you want to change the base?
[CLI] az bicep decompile-params: Add --force option to overwrite existing file
#32739
Conversation
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
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.
Pull request overview
This PR adds support for the --force option to the az bicep decompile-params command, allowing users to overwrite existing output files. This aligns with similar functionality in other bicep commands like decompile, restore, and publish.
Changes:
- Added
--forceparameter todecompileparams_bicep_filefunction to pass through to the Bicep CLI - Added help documentation example demonstrating
--forceusage
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/resource/custom.py | Added force parameter to function signature and conditional logic to pass --force flag to Bicep CLI |
| src/azure-cli/azure/cli/command_modules/resource/_help.py | Added help example showing how to use --force to overwrite existing output |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related command
bicep decompile-paramsDescription
Enable
--forcepassthrough foraz bicep decompile-paramsto allow overwriting existing output.Add CLI help example showing
--forceusage.Testing Guide
python -m pytest src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource_custom.py -k test_bicep_decompile_params_defaultsHistory Notes
[CLI]
az bicep decompile-params: Add new parameter--forceto overwrite existing files (#32739)This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.