Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Plaster Templates

Build status

This is a collection of Plaster templates I use when working in PowerShell.

Recomended Additional Modules:

Installation

PowerShell Gallery

Install-Module OmniPSTemplates -Scope CurrentUser

Manually

From Source

git clone https://github.com/omniomi/OmniPSTemplates.git
cd .\OmniPSTemplates\tools
.\Build.ps1 Install

From Zip

  1. Download the OmniPSTemplates.zip from https://ci.appveyor.com/project/omniomi/omnipstemplates/build/artifacts
  2. Extract the contents to C:\Users\<Your Name>\Documents\WindowsPowerShell\Modules\OmniPSTemplates

Usage

If you have the PowerShellGet module installed:

Install-Module Plaster

Command Line

Module

$Template =  Get-PlasterTemplate -IncludeInstalledModules | ? { $_.Title -eq "Omni's New Module" }
Invoke-Plaster -TemplatePath $Template.TemplatePath

Script

$Template =  Get-PlasterTemplate -IncludeInstalledModules | ? { $_.Title -eq "Omni's New Script" }
Invoke-Plaster -TemplatePath $Template.TemplatePath

VS Code

  1. In VS Code open the command palette

Mac: cmd+p

Windows / Linux: ctrl+p

  1. Type a ">" followed by "Plaster".

  2. Select the command "PowerShell: Create New Project from Plaster Template."

  3. Click the option to "Load additional templates from installed modules" at the top.

  4. Select the appropriate template.

Templates

New Module

This is a modified version of the 'NewModule' example template from the official Plaster repository.

New Script

A heavily modified version of the 'NewModule' example template from the official Plaster repository. This template creates a single file ps1 script with a #PSScriptInfo block ready for publishing.

About

Plaster Templates for PowerShell

Resources

License

Packages

No packages published