Skip to content

Confirm and WhatIf parameters should have constant descriptions #768

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

Merged
merged 3 commits into from
Jul 15, 2025

Conversation

adityapatwardhan
Copy link
Member

PR Summary

This pull request introduces changes to improve parameter description handling and corrects a typo in the TransformUtils class name. It also adds unit tests to ensure proper descriptions for Confirm and WhatIf parameters. Below are the most important changes grouped by theme:

Parameter Description Handling Enhancements:

  • src/Transform/TransformUtils.cs: Added a new method GetParameterTemplateString to dynamically generate parameter descriptions, including specific descriptions for Confirm and WhatIf parameters.
  • src/Model/Constants.cs: Added constants ConfirmParameterDescription and WhatIfParameterDescription for predefined parameter descriptions.
  • src/Transform/TransformBase.cs: Replaced occurrences of string.Format(Constants.FillInParameterDescriptionTemplate, param.Name) with TransformUtils.GetParameterTemplateString(param.Name) to utilize the new method. [1] [2]

Typo Fix:

Unit Testing:

PR Context

Fixes #735

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan adityapatwardhan changed the title Confirm what if Confirm and WhatIf parameters should have constant descriptions Jul 15, 2025
Copy link
Collaborator

@sdwheeler sdwheeler left a comment

Choose a reason for hiding this comment

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

LGTM

@adityapatwardhan adityapatwardhan merged commit 04e1564 into main Jul 15, 2025
8 checks passed
@adityapatwardhan adityapatwardhan deleted the ConfirmWhatIf branch July 15, 2025 20:13
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.

New-MarkdownCommandHelp Omits Description for -Confirm and -WhatIf
2 participants