We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aced338 commit 7b61712Copy full SHA for 7b61712
1 file changed
Languages/Python/Python-Language.ps1
@@ -9,23 +9,12 @@ function Language.Python {
9
Because Python does not support multiline comment blocks, PipeScript can be written inline inside of multiline string
10
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
.EXAMPLE
27
'print("Hello World")' > .\HelloWorld.py
28
Invoke-PipeScript .\HelloWorld.py
+.EXAMPLE
+ Template.HelloWorld.py -Message "Hi" | Set-Content ".\Hi.py"
+ Invoke-PipeScript .\Hi.py
29
#>
30
[ValidatePattern('\.py$')]
31
param()
0 commit comments