binyomen / pwsh-live-doc

Run real code examples to generate empirical documentation of the complex nonsense that is PowerShell semantics.
https://www.pwsh-live-doc.com/
MIT License
5 stars 0 forks source link

Replace classes with PSCustomObject #37

Closed binyomen closed 4 years ago

binyomen commented 4 years ago

The fact that you can't reload classes in a given session was making it kinda difficult to debug. Tests and builds needed to run in their own sessions, and as a result the $error variable wasn't available to figure out exactly where an error occurred.

While PSCustomObject isn't as well integrated into the type system as classes are, I still think it's the best choice going forward.

github-actions[bot] commented 4 years ago

🚀 Deployed on https://5eeee4c0b11b6d0dc3724cbb--dazzling-easley-c1a84e.netlify.app