MyPowerShellTemplates
1.4.0
A comprehensive PowerShell module development toolkit for creating templates, scaffolding modules, and generating PowerShell scripts with intelligent code generation and complexity levels.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2024 NumidiaLive. All rights reserved.
Package Details
Author(s)
- numidia
Tags
PowerShell Template Module Scaffolding Development CodeGeneration Templates Functions Scripts
Functions
New-PstFunction New-PstModule New-PstModuleManifest New-PstScript Open-PstGuiFunctionSelector Set-PstAutomationMode Get-PstAutomationMode
Dependencies
This module has no dependencies.
Release Notes
## v1.4.0 (2025-12-05)
- Release via GitHub Actions
## v1.1.0 (2025-11-09)
- **NEW FEATURE**: Added complexity levels for function and script templates
- **ENHANCEMENT**: New-PstFunction now supports -ComplexityLevel parameter (Basic, Moderate, Complex)
- **ENHANCEMENT**: New-PstScript now supports -ComplexityLevel parameter (Basic, Moderate, Complex)
- **NEW TEMPLATES**: Added Function-Basic.ps1, Function-Moderate.ps1, Script-Basic.ps1, Script-Complex.ps1
- **DOCUMENTATION**: Added comprehensive PowerShell Complexity Levels guide
- **BACKWARD COMPATIBLE**: Existing functions default to Complex level for compatibility
### Complexity Levels:
- **Basic**: Minimal structure for simple automation tasks
- **Moderate**: Parameter validation, basic error handling, help documentation
- **Complex**: Full cmdlet features, pipeline support, begin/process/end blocks
## v1.0.2 (2025-09-14)
- Version bump via release script
## v1.0.1 (2025-09-14)
- Version bump via release script
## v0.0.0.4
- Complete CI/CD pipeline implementation
- Cross-platform compatibility (Windows, Linux, macOS)
- Comprehensive test coverage with Pester 5.x
- PSScriptAnalyzer compliance
- Template-based code generation for functions, modules, and scripts
- GUI function selector with XAML interface
- Automation mode detection for CI/CD environments
## Features
- New-PstFunction: Generate PowerShell functions from templates with complexity levels
- New-PstModule: Scaffold complete PowerShell modules
- New-PstScript: Create PowerShell scripts with complexity levels
- New-PstModuleManifest: Generate module manifests
- Open-PstGuiFunctionSelector: Interactive template selection GUI
- Get/Set-PstAutomationMode: Automation environment detection
## Requirements
- PowerShell 5.1+ or PowerShell Core 7+
- Windows, Linux, or macOS
FileList
- MyPowerShellTemplates.nuspec
- MyPowerShellTemplates.psd1
- Private\Get-PstApprovedVerb.ps1
- MyPowerShellTemplates.psm1
- Private\New-PstGeneratedCode.ps1
- Private\Get-ModuleRootFileName.ps1
- Public\New-PstScript.ps1
- Private\New-PstBeginBlock.ps1
- Public\Open-PstGuiFunctionSelector.ps1
- Private\Get-ModuleRootFilePath.ps1
- Public\New-PstModule.ps1
- Private\New-PstCommentBasedHelp.ps1
- Public\New-PstFunction.ps1
- Private\Get-PstComplexityFeatures.ps1
- Public\Get-PstAutomationMode.ps1
- Private\New-PstScriptContent.ps1
- Public\Set-PstAutomationMode.ps1
- Private\Get-ModulePSScriptRoot.ps1
- Public\New-PstModuleManifest.ps1
- Private\ConvertTo-PstParameterDefinition.ps1
- Private\New-PstEndBlock.ps1
- Resources\Samples\Module.zip
- Private\New-PstModuleRootContent.ps1
- Resources\Samples\Function-Complex.ps1
- Private\Get-PstPublicFunction.ps1
- Resources\Samples\Function-Basic.ps1
- Private\Get-FileHashtable.ps1
- Resources\Samples\Script-Moderate.ps1
- Private\Get-PstComplexitySchema.ps1
- Resources\Samples\Script-Basic.ps1
- Private\Get-PublicPath.ps1
- Resources\Samples\Script-Complex.ps1
- Private\New-PstParameterBlock.ps1
- Resources\Samples\Function-Moderate.ps1
- Private\New-PstProcessBlock.ps1
- Resources\XAML\PstFunctionSelector.xaml
- Private\New-PstFunctionSignature.ps1