Skip to content

Commit

Permalink
feat: Out-JSON ( Fixes #727 )
Browse files Browse the repository at this point in the history
    Adding Example
  • Loading branch information
StartAutomating authored and StartAutomating committed Mar 9, 2024
1 parent 2c6f808 commit cf8df1d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Tests/Examples/Template.PowerShell.Help.examples.tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

describe 'Template.PowerShell.Help' {
it 'Template.PowerShell.Help Example 1' {
{
[Help(Synopsis="The Synopsis", Description="A Description")]
param()


"This Script Has Help, Without Directly Writing Comments"

} | .>PipeScript
}
it 'Template.PowerShell.Help Example 2' {
{
param(
[Help(Synopsis="X Value")]
$x
)
} | .>PipeScript
}
it 'Template.PowerShell.Help Example 3' {
{
param(
[Help("X Value")]
$x
)
} | .>PipeScript
}
}

0 comments on commit cf8df1d

Please sign in to comment.