Skip to content

PlatyPS needs to create help for dynamic parameters #245

Closed

Activity

  1. changed the title [-]PLatyPS needs to handle dynamic help[/-] [+]PlatyPS needs to handle dynamic help[/+] on Dec 14, 2016
  2. vors commented on Dec 21, 2016

    @vors
    Collaborator

    What exactly support for dynamic help means?
    Can you elaborate please.

  3. zjalexander commented on Jan 3, 2017

    @zjalexander
    Author

    Providers can have different parameter sets for some cmdlets, such as the Certificate provider or the Registry provider. That is defined in an XML section. Our current solution to generate help for this set of content is to copy the XML out of one file and paste it into the latest version of help. As the UserVoice entries indicate, this is .... not scaling successfully.

    cc Joey Aiello (@joeyaiello) and June Blender (@juneb) to both check my accuracy and because they are interested in this

  4. juneb commented on Jan 4, 2017

    @juneb

    Almost! Providers can add parameters to a cmdlet dynamically. To cover this in help, we added custom cmdlet help for providers and nested it in provider help XML. To make it work, the provider has to implement the ICmdletProviderSupportsHelp interface. I think all of the core providers did that by the close of 3.0.

    https://blogs.msdn.microsoft.com/powershell/2009/05/28/adding-custom-cmdlet-help-for-providers/

    Back in 3.0, I used a web-based tool (Wassim's?) to write and generate the custom cmdlet help for each provider. Then, I wrote a script that added the provider help to each cmdlet help XML file. It should be in the directory of help automation scripts that I left.

    Let me know if you need anything else.

  5. ElinoraWhite commented on Dec 14, 2017

    @ElinoraWhite
    Contributor

    Related to #111

  6. sdwheeler commented on Apr 4, 2022

    @sdwheeler
    Contributor

    Our current standard is to document all parameters for all supported providers. The documentation indicates which provider the parameter comes from. We need a way for PlatyPS to discover the dynamic parameters during new and update workflows.

  7. changed the title [-]PlatyPS needs to handle dynamic help[/-] [+]PlatyPS needs to create help for dynamic parameters[/+] on Apr 4, 2022
  8. added
    Issue-Enhancement
    and removed on Apr 4, 2022
  9. sdwheeler commented on Jul 30, 2025

    @sdwheeler
    Contributor

    PlatyPS could loop through all known (shipped with PowerShell) providers to discover provider-based dynamic parameters, but there is no way to discover parameters that are not provider-based.

    Therefore, documenting dynamic parameters is left as a task for the author. The Update command in PlatyPS is designed to add new information but doesn't remove parameters that exist in the markdown but aren't discovered.

  10. added
    Resolution-Declined
    on Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-Declined

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions