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