PSModule / Build-PSModule

Action that is used to build a PowerShell module.
https://psmodule.io
MIT License
2 stars 0 forks source link

🚀[Feature]: Automatically find and export variables #58

Closed MariusStorhaug closed 2 months ago

MariusStorhaug commented 2 months ago

Description

We need a predefined way to specify and add variables to the module, while also defined which are public (to be exported) and who are private.

Alternative 1

Some thoughts on how to add this:

If so, we should replicate for functions:

What do we do with data? Keep it or remove it?

Alternative 2

Keep the folder structure for private and public directly on source, but allow a variables.ps1 file to be defined, or find the files containing variables by using AST to find them.

Alternative 3

have the private and public folders as is, but have subfolders for variables and functions, allows for a scaleable structure for classes and other items that might come later, but so does alternative 1.