Skip to content

Ensure external help file from metadata is used for generating the MAML file name #779

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 2 commits into from
Jul 22, 2025

Conversation

adityapatwardhan
Copy link
Member

PR Summary

This pull request introduces changes to improve the handling of external help files in the help generation system. The updates ensure better organization and compatibility across platforms, as well as enhance metadata handling for command help objects.

Improvements to help file grouping and naming:

  • src/Command/ExportMamlCommandHelp.cs: Updated the grouping logic in EndProcessing() to prioritize ExternalHelpFile over ModuleName and added ordering by group key. Modified the help file name generation to use ExternalHelpFile if available.

Platform compatibility:

  • src/Common/MetadataUtils.cs: Added a comment explaining the use of upper case for "Help.xml" file names to avoid issues on non-Windows platforms.

Enhanced metadata handling:

  • src/Transform/TransformBase.cs: Updated ConvertCmdletInfo() to set the ExternalHelpFile property based on metadata, ensuring it defaults to an empty string if no value is provided.

PR Context

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.

Looks good to me.

@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 enabled auto-merge (squash) July 22, 2025 21:41
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 c450917 into main Jul 22, 2025
8 checks passed
@adityapatwardhan adityapatwardhan deleted the updateMamlFileGrping branch July 22, 2025 21:47
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