Hello,
I created a simple powershell module creator published here GitHub - tfarray/OpenApi-To-PowerShell: Human readable OpenApi to PowerShell Module Code Generator
I would like to know if some of you were willing to give it a try.
Why did I build this code ?
- I couldn’t find a simple-light weight creator
- I wanted the generated code to be as simple as possible
Key features :
- Creates 2 modules
- a .ps1m which you will modify the code to make it work, but that will only contain 2 functions :
- One to initialize the tool (required to specify which credentials will be used for all the commands)
- One command called Invoke-ModuleName which will run ALL transactions with the API
- a .ps1 file that you won’t touch, but that will contain ALL the commands of the API
- a .ps1m which you will modify the code to make it work, but that will only contain 2 functions :
- All the code is human readable
Things I would like to add :
- A help file self generated relative to the information in the OpenApi
Thank you