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 6671c4c commit c846f92Copy full SHA for c846f92
1 file changed
Languages/Python/Python-Language.ps.ps1
@@ -8,23 +8,12 @@ Language function Python {
8
Because Python does not support multiline comment blocks, PipeScript can be written inline inside of multiline string
9
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
.EXAMPLE
26
'print("Hello World")' > .\HelloWorld.py
27
Invoke-PipeScript .\HelloWorld.py
+.EXAMPLE
+ Template.HelloWorld.py -Message "Hi" | Set-Content ".\Hi.py"
+ Invoke-PipeScript .\Hi.py
28
#>
29
[ValidatePattern('\.py$')]
30
param()
0 commit comments