File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -8,23 +8,12 @@ Language function Python {
8
8
Because Python does not support multiline comment blocks, PipeScript can be written inline inside of multiline string
9
9
10
10
PipeScript can be included in a Python string that starts and ends with ```{}```, for example ```"""{}"""```
11
- . Example
12
- .> {
13
- $pythonContent = @'
14
- """{
15
- $msg = "Hello World", "Hey There", "Howdy" | Get-Random
16
- @"
17
- print("$msg")
18
- "@
19
- }"""
20
- '@
21
- [OutputFile('.\HelloWorld.ps1.py')]$PythonContent
22
- }
23
-
24
- .> .\HelloWorld.ps1.py
25
11
. EXAMPLE
26
12
'print("Hello World")' > .\HelloWorld.py
27
13
Invoke-PipeScript .\HelloWorld.py
14
+ . EXAMPLE
15
+ Template.HelloWorld.py -Message "Hi" | Set-Content ".\Hi.py"
16
+ Invoke-PipeScript .\Hi.py
28
17
#>
29
18
[ValidatePattern (' \.py$' )]
30
19
param ()
You can’t perform that action at this time.
0 commit comments