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 d3795ab commit 9cec897
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Tests/Examples/Template.PipeScript.OutputFile.examples.tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

describe 'Template.PipeScript.OutputFile' {
it 'Template.PipeScript.OutputFile Example 1' {
Invoke-PipeScript {
[OutputFile("hello.txt")]
param()

'hello world'
}
}
it 'Template.PipeScript.OutputFile Example 2' {
Invoke-PipeScript {
param()

$Message = 'hello world'
[Save(".\Hello.txt")]$Message
}
}
}

0 comments on commit 9cec897

Please sign in to comment.