techthoughts2 / Catesta

Catesta is a PowerShell module and vault project generator. It uses templates to rapidly scaffold test and build integration for a variety of CI/CD platforms.
https://www.catesta.dev/
MIT License
169 stars 20 forks source link

Catesta Feature request - Support for classes #89

Closed dsolodow closed 3 months ago

dsolodow commented 3 months ago

Description

We have public and private folders for those functions; having a way to handle classes would be helpful.

Describe the solution you'd like

Add a Classes folder to the scaffolding (perhaps behind a parameter?) and update the build tasks accordingly

Describe any alternatives you've considered

Still researching.

techthoughts2 commented 3 months ago

I'm open to the idea of adding a Classes folder, but I need a bit more detail to understand how it would integrate with Catesta.

Could you provide some examples or a sample project that illustrates how you'd like the Classes folder to be structured and used? Specifically, what scaffolding would you expect Catesta to generate, and how would the build tasks interact with this folder?

dsolodow commented 3 months ago

So I see that Stucco has this in their template (https://github.com/devblackops/Stucco/commit/357f8b009ef8f4fea4f27186d0e442993f212564) but it looks like Classes is just another folder of ps1 files that get rolled into the .psm1 so as long as the classes are ignored by the Pester & Code Coverage, it may be unnecessary.

It would be nice to have as a parameter just to have it keep things organized, but now that I know the classes can just go in private or public, that's the required bit.