The contents of this GitHub repostiory form a PowerShell Plaster template.
This template was created by Kieran Jacobsen, based upon the work of Rob Sewell.
The goal of this template is to provide a strong structure for PowerShell module development and to encourage community participation via GitHub.
You can install Plaster from the PowerShell Gallery
PS> Install-Module -Name Plaster
Using Git you can clone the template locally.
PS> git clone https://github.com/poshsecurity/PlasterTemplate
Now that you have template locally, you can run Invoke-Plaster
to create a new module based upon the template.
I typically follow this workflow:
- Create a public (or private) on GitHub
- Clone the repository locally
PS> git clone <Path to repository>
- Create a hash table containing the required parameters, and then call
Invoke-Plaster
PS> $PlasterParameters = @{ TemplatePath = "<path to the Plaster Template above>" DestinationPath = "<path to the new repository you cloned>" AuthorName = "Cool PowerShell Developer" AuthorEmail = "[email protected]" ModuleName = "MyNewModule" ModuleDescription = "This is my awesome PowerShell Module!" ModuleVersion = "0.1" ModuleFolders = @("functions", "internal") GitHub = "Yes" License = "Yes" } PS> Invoke-Plaster @PlasterParameters
- Plaster should then execute, creating the required files and folders.
- When you are ready you can push everything up to GitHub.