SPFramework: Example of usage

Initialize framework library with working directory set:
PS SPFramework:\> .\Init.ps1 -Auto

To create new file with two functions and comment based section use Create-FileFunction / cff function:
PS SPFramework:\> Create-FileFunction .\Parallel-Jobs.ps1 Set-ParralelJob, Remove-ParallelJob -CommentBasedHelp
or
PS SPFramework:\> cff .\Parallel-Jobs.ps1 Set-ParralelJob, Remove-ParallelJob -CommentBasedHelp
Full list of functions and aliases can be found here: Functions and aliases list

To add another function(s) to file use same Create-FileFunction with null or blank value at first parameter position. New function(s) will be append:
PS SPFramework:\> Create-FileFunction "" Get-ParallelJob -CommentBasedHelp
or
PS SPFramework:\> cff "" Get-ParallelJob -CommentBasedHelp

Dodaj komentarz