Exporting classes with type accelerators #493
Unanswered
tsubotitsch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Sampler has well structured folders for enums and classes, but what's the right way to export those?
I've created 2 parts (ps1-files in /source/Public) of the type accelerator.
Part 1: $ExportableTypes (manual written)
Part 2: the part from https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_classes?view=powershell-7.4#exporting-classes-with-type-accelerators
Is this the correct way, or is there any elegant way of generating the ExportableTypes with all my enums and classes (>80) than manual copy over?
Regards,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions