Plaster Templates for PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
OmniPSTemplates
docs
tests
tools
.gitignore
LICENSE
README.md
RELEASENOTES.md
appveyor.yml

README.md

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.