Skip to content

dbroeglin/Forge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forge - A set of tools to automate PowerShell code generation

The Forge module contains a set of tools to automate PowerShell code generation. It does nothing by itself. Actual generators are published in separate modules named Forge.*. Take a look at Forge.Module a PowerShell module generator.

Forge provides support cmdlets that aim at making writing a generator very easy. The most useful cmdlets are:

  • New-ForgeDirectory: generates a new directory in the destination path.
  • Copy-ForgeFile: copies a file from the template directory to the destination path. If the file is an EPS template, the template will be expanded.
  • Get-ValueOrGitOrDefault: will return the value passed as an argument or, if the value is absent, it looks in git config key_name and return the value. If git is absent or no config exists, it returns the default value passed as an argument.

Installation

Find-Module Forge | Install-Module

Dependencies

Run time

At run time, the following modules are required:

Install-Module EPS

Build time

Additionally, at build time, the following modules are required:

Install-Module Pester

Similar projects