1
1
Python.Template
2
2
---------------
3
+
4
+
5
+
6
+
3
7
### Synopsis
4
8
Python Template Transpiler.
5
9
10
+
11
+
6
12
---
13
+
14
+
7
15
### Description
8
16
9
17
Allows PipeScript to generate Python.
@@ -12,7 +20,11 @@ Because Python does not support multiline comment blocks, PipeScript can be writ
12
20
13
21
PipeScript can be included in a Python string that starts and ends with ``` {} ``` , for example ``` """{}""" ```
14
22
23
+
24
+
15
25
---
26
+
27
+
16
28
### Examples
17
29
#### EXAMPLE 1
18
30
``` PowerShell
@@ -29,82 +41,82 @@ print("$msg")
29
41
}
30
42
```
31
43
.> .\HelloWorld.ps1.py
44
+
45
+
32
46
---
47
+
48
+
33
49
### Parameters
34
50
#### ** CommandInfo**
35
51
36
52
The command information. This will include the path to the file.
37
53
38
54
39
55
40
- > ** Type** : ``` [CommandInfo] ```
41
56
42
- > ** Required** : true
43
57
44
- > ** Position** : named
45
58
46
- > ** PipelineInput** : true (ByValue)
59
+ | Type | Required| Position| PipelineInput |
60
+ | ---------------| --------| --------| --------------|
61
+ | ` [CommandInfo] ` | true | named | true (ByValue)|
47
62
48
63
49
64
50
- ---
51
65
#### ** AsTemplateObject**
52
66
53
67
If set, will return the information required to dynamically apply this template to any text.
54
68
55
69
56
70
57
- > ** Type** : ``` [Switch] ```
58
71
59
- > ** Required** : true
60
72
61
- > ** Position** : named
62
73
63
- > ** PipelineInput** : false
74
+ | Type | Required| Position| PipelineInput|
75
+ | ----------| --------| --------| -------------|
76
+ | ` [Switch] ` | true | named | false |
64
77
65
78
66
79
67
- ---
68
80
#### ** Parameter**
69
81
70
82
A dictionary of parameters.
71
83
72
84
73
85
74
- > ** Type** : ``` [IDictionary] ```
75
86
76
- > ** Required** : false
77
87
78
- > ** Position** : named
79
88
80
- > ** PipelineInput** : false
89
+ | Type | Required| Position| PipelineInput|
90
+ | ---------------| --------| --------| -------------|
91
+ | ` [IDictionary] ` | false | named | false |
81
92
82
93
83
94
84
- ---
85
95
#### ** ArgumentList**
86
96
87
97
A list of arguments.
88
98
89
99
90
100
91
- > ** Type** : ``` [PSObject[]] ```
92
101
93
- > ** Required** : false
94
102
95
- > ** Position** : named
96
103
97
- > ** PipelineInput** : false
104
+ | Type | Required| Position| PipelineInput|
105
+ | --------------| --------| --------| -------------|
106
+ | ` [PSObject[]] ` | false | named | false |
107
+
108
+
98
109
99
110
100
111
101
112
---
113
+
114
+
102
115
### Syntax
103
116
``` PowerShell
104
117
Python.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
105
118
```
106
119
``` PowerShell
107
120
Python.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
108
121
```
109
- ---
110
122
0 commit comments