Skip to content

This project is aimed to create set of simple PowerShell cmdlets in C# that would assist developers in writing PowerShell modules.

License

Notifications You must be signed in to change notification settings

iricigor/SimpleTemplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Templates

This project is aimed to create set of simple PowerShell cmdlets in C# that would assist developers in writing PowerShell modules.

Commands

Planned list of commands is:

  • New-STBasicFunction - creates simple PowerShell function
  • New-STAdvancedFunction - create PS function with begin, process and end blocks
  • New-STTestCase - creates a Pester test case

Ultimately, all of this will be followed by New-STModule and maybe more (pipelines, documentation, etc.)

Project is done in scope of Hacktoberfest 2022

Tasks list

Links

Similar projects

Initial project creation

Run dotnet commands:

dotnet new -i Microsoft.PowerShell.Standard.Module.Template
dotnet new psmodule
dotnet new gitignore
dotnet build

Then, verify it in PowerShell:

Import-Module '.\bin\Debug\netstandard2.0\Simple_Templates.dll'
Get-Module 'Simple_Templates'
Test-SampleCmdlet 12

It should generate output similar to this:

FavoriteNumber FavoritePet
-------------- -----------
            12 Dog

About

This project is aimed to create set of simple PowerShell cmdlets in C# that would assist developers in writing PowerShell modules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published