Skip to content

仓库 files navigation

PSModuleDevelopment

Welcome to your one stop for PowerShell development tools! This project is designed to help you with accelerating your coding workflows through a wide range of utilities. Its flagship feature is a templating engine that allows you to swiftly create new projects - either by using some of the default templates or easily creating your own.

Online Documentation

As this module is part of the PSFramework project, its documentation can be found on PSFramework.org.

As ever, documentation takes time out of "more features!", so there could be more, but at least the templating is covered in depth.

Install

To get read to use this module, run this:

Install-Module PSModuleDevelopment -Scope CurrentUser

Profit

With that you are ready to go and have fun with it. A few examples of what it can do for you:

Create a new module project

Invoke-PSMDTemplate MiniModule

Parse a script file and export all functions into dedicated files

Split-PSMDScriptFile -File .\largescript.ps1 -Path .\functions

Fix all the file encodings

Get-ChildItem -Recurse -File | Set-PSMDEncoding

Fix parameter blocks

Get-ChildItem -Recurse -File | Set-PSMDCmdletBinding

Get better members

Get-Date | Get-PSMDMember -Name ToString

搜索 for Assemblies and Types

# List all assemblies
Get-PSMDAssembly

# 搜索 for types in that assembly
Get-PSMDAssembly *ActiveDirectory* | Find-PSMDType

# 搜索 for all types implementing IEnumerable
Find-PSMDType -Implements IEnumerable

# Get Constructors
[DateTime] | Get-PSMDConstructor

关于

Provides tools that help with module development

Resources

Stars

153 stars

关注者

12 watching

复刻s

发布

Sponsor this project

Used by

贡献者

Languages