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 5fc9d77 commit 6737829
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

describe 'Template.PipeScript.ExplicitOutput' {
it 'Template.PipeScript.ExplicitOutput Example 1' {
Invoke-PipeScript {
[explicit()]
param()
"This Will Not Output"
Write-Output "This Will Output"
}
}
it 'Template.PipeScript.ExplicitOutput Example 2' {
{
[explicit]{
1,2,3,4
echo "Output"
}
} | .>PipeScript
}
}

0 comments on commit 6737829

Please sign in to comment.