Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbroeglin/Forge
PowerShell code generation (aka scaffolding) module
https://github.com/dbroeglin/Forge
forge generator module powershell scaffolding template
Last synced: 3 months ago
JSON representation
PowerShell code generation (aka scaffolding) module
- Host: GitHub
- URL: https://github.com/dbroeglin/Forge
- Owner: dbroeglin
- License: apache-2.0
- Created: 2016-08-21T08:10:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T20:53:16.000Z (almost 7 years ago)
- Last Synced: 2024-05-28T02:20:44.049Z (5 months ago)
- Topics: forge, generator, module, powershell, scaffolding, template
- Language: PowerShell
- Size: 58.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - dbroeglin/Forge - PowerShell code generation (aka scaffolding) module (PowerShell)
README
# 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`](https://github.com/dbroeglin/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
* https://github.com/PowerShell/Plaster
* https://github.com/LaurentDardenne/Template
* https://github.com/zloeber/PSModuleBuild is based on the excelent Invoke-Build module.