Azure / ResourceModules

This repository includes a CI platform for and collection of mature and curated Bicep modules. The platform supports both ARM and Bicep and can be leveraged using GitHub actions as well as Azure DevOps pipelines.
https://aka.ms/carml
MIT License
725 stars 460 forks source link

[Feature Request]: Convert `tools` folder into one or multiple PowerShell modules #2152

Open AlexanderSehr opened 1 year ago

AlexanderSehr commented 1 year ago

Description

To ease the usage & structure of our tools folder, I'd propose to convert it into one or multiple PowerShell modules with a proper structure like

To ease the usage & structure of our tools folder, I'd propose to convert it into one or multiple PowerShell modules with a proper structure like

To ease the usage & structure of our tools folder, I'd propose to convert it into one or multiple PowerShell modules with a proper structure like

With that, we could remove 'inner/helper' functions from the scripts and move them instead as private functions into the 'private' folder.

We'd further need to adjust the current loading of the functions in the pipeline and replace it with the import of the Module.

This is implemented in an iterative approach with the following PRs:

AlexanderSehr commented 1 year ago

Should dicusss the PR some time and make a plan to get this done as quick as possible

eriqua commented 1 year ago

@AlexanderSehr should these efforts be put in C# redevelopment?

AlexanderSehr commented 1 year ago

@AlexanderSehr should these efforts be put in C# redevelopment?

Hey @eriqua, ultimately no. The one function which is currently under consideration is the Set-ModuleReadMe function. However, it is only 1 of 58 (+ inner functions) scripts in the 'utilities' folder, or 1 of 23 (+ inner functions) of the 'tools' folder. So we could instead simply not start with the Set-ModuleReadMe function (even though this PR was ready weeks ago. Dumped it just recently as it ran for so long that it became stale).

AlexanderSehr commented 1 year ago

I can, if you agree, start with the other ones over

AlexanderSehr commented 1 year ago

Un-assigned myself as we need to start over anyways and given the previous attept I don't think this will be something we merge any time soon