Skip to content

Change object model for ModuleFile #658

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 17, 2024
Merged

Conversation

JamesWTruher
Copy link
Contributor

PR Summary

  • Metadata is now a string/object dictionary, since the value may be an array.
  • Create a serializer for that dictionary to support in flow style (array elements on a single line).
  • Add the dlls to the nested module list (as these need to be loaded before the module assembly is loaded due to the flow style change.
  • Explicitly sort the metadata before serializing it.
  • Fix parser bug for the last ast.
  • Change the object model for the module file due to requirement to handle multiple command groups (supporting exchange scenario).
  • Add diagnostics for module file.
  • Fix metadata parsing and serializing
  • Fix a bunch of white space issues.

PR Context

yaml needs to preserve the collection aspect.
Fix a bunch of white space issues.
Change module file object model to have groups of cmdlets, rather than a flat list.
since the value may be an array.
Create a serializer for that dictionary to support in flow style (array elements on a single line).
Add the dlls to the nested module list (as these need to be loaded before the module assembly is loaded due to the flow style change.
Explicitly sort the metadata before serializing it.
Fix parser bug for the last ast.
Change the object model for the module file due to requirement to handle multiple command groups (supporting exchange).
Add diagnostics for module file.
@JamesWTruher JamesWTruher merged commit 6313253 into PowerShell:v2 Jul 17, 2024
8 checks passed
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.

1 participant