Skip to content

Commit 031f950

Browse files
StartAutomatingStartAutomating
authored andcommitted
Join-PipeScript: Improving Unnamed end block behavior (Fixes #363)
1 parent 22a6e84 commit 031f950

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

docs/Python.Template.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
Python.Template
22
---------------
3+
4+
5+
6+
37
### Synopsis
48
Python Template Transpiler.
59

10+
11+
612
---
13+
14+
715
### Description
816

917
Allows PipeScript to generate Python.
@@ -12,7 +20,11 @@ Because Python does not support multiline comment blocks, PipeScript can be writ
1220

1321
PipeScript can be included in a Python string that starts and ends with ```{}```, for example ```"""{}"""```
1422

23+
24+
1525
---
26+
27+
1628
### Examples
1729
#### EXAMPLE 1
1830
```PowerShell
@@ -29,82 +41,82 @@ print("$msg")
2941
}
3042
```
3143
.> .\HelloWorld.ps1.py
44+
45+
3246
---
47+
48+
3349
### Parameters
3450
#### **CommandInfo**
3551

3652
The command information. This will include the path to the file.
3753

3854

3955

40-
> **Type**: ```[CommandInfo]```
4156

42-
> **Required**: true
4357

44-
> **Position**: named
4558

46-
> **PipelineInput**:true (ByValue)
59+
|Type |Required|Position|PipelineInput |
60+
|---------------|--------|--------|--------------|
61+
|`[CommandInfo]`|true |named |true (ByValue)|
4762

4863

4964

50-
---
5165
#### **AsTemplateObject**
5266

5367
If set, will return the information required to dynamically apply this template to any text.
5468

5569

5670

57-
> **Type**: ```[Switch]```
5871

59-
> **Required**: true
6072

61-
> **Position**: named
6273

63-
> **PipelineInput**:false
74+
|Type |Required|Position|PipelineInput|
75+
|----------|--------|--------|-------------|
76+
|`[Switch]`|true |named |false |
6477

6578

6679

67-
---
6880
#### **Parameter**
6981

7082
A dictionary of parameters.
7183

7284

7385

74-
> **Type**: ```[IDictionary]```
7586

76-
> **Required**: false
7787

78-
> **Position**: named
7988

80-
> **PipelineInput**:false
89+
|Type |Required|Position|PipelineInput|
90+
|---------------|--------|--------|-------------|
91+
|`[IDictionary]`|false |named |false |
8192

8293

8394

84-
---
8595
#### **ArgumentList**
8696

8797
A list of arguments.
8898

8999

90100

91-
> **Type**: ```[PSObject[]]```
92101

93-
> **Required**: false
94102

95-
> **Position**: named
96103

97-
> **PipelineInput**:false
104+
|Type |Required|Position|PipelineInput|
105+
|--------------|--------|--------|-------------|
106+
|`[PSObject[]]`|false |named |false |
107+
108+
98109

99110

100111

101112
---
113+
114+
102115
### Syntax
103116
```PowerShell
104117
Python.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
105118
```
106119
```PowerShell
107120
Python.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
108121
```
109-
---
110122

0 commit comments

Comments
 (0)