Skip to content

omniomi/OmniPSTemplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

Stars

Watchers

Forks

Packages

No packages published