Skip to content
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

(#208) Improve UX of Crescendo cmdlets #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steviecoaster
Copy link

@steviecoaster steviecoaster commented Apr 11, 2024

PR Summary

This pull request enhances the user experience of the Microsoft.PowerShell.Crescendo module by exposing all available class properties as cmdlet parameters for the respective Cmdlet

PR Context

Creating Crescendo objects with the Microsoft.PowerShell.Crescendo module today requires the user to write extra glue code to fully extend the Crescendo object before generating the json schema for the module.

This friction is reduced by adding all available properties as Cmdlet parameters, reducing the amount of glue code required on the part of the end user.

Fixes #208

@steviecoaster steviecoaster marked this pull request as ready for review April 17, 2024 00:58
This commit improves the author experience when
accelerating a native command.

This commit exposes all class properties as function
parameters. Where appropriate an argumentcompleter
attribute has been introduced to further enhance
the authoring experience when working with the
Microsoft.PowerShell.Crescendo module.
@JamesWTruher
Copy link
Contributor

@steviecoaster - Thanks for this, I certainly think it will be helpful. Would it be too much to ask to have some validation for the new behavior? I'm reluctant to take anything that doesn't improve the validation.

@steviecoaster
Copy link
Author

@JamesWTruher I can add some tests for this behavior, certainly!

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.

Extend functions that implement classes for ParameterInfo and Command with additional parameter options
2 participants