|
1 | 1 | Rust.Template |
2 | 2 | ------------- |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
3 | 7 | ### Synopsis |
4 | 8 | Rust Template Transpiler. |
5 | 9 |
|
| 10 | + |
| 11 | + |
6 | 12 | --- |
| 13 | + |
| 14 | + |
7 | 15 | ### Description |
8 | 16 |
|
9 | 17 | Allows PipeScript to generate Rust. |
10 | 18 |
|
11 | 19 | Multiline comments with /*{}*/ will be treated as blocks of PipeScript. |
12 | 20 |
|
| 21 | + |
| 22 | + |
13 | 23 | --- |
| 24 | + |
| 25 | + |
14 | 26 | ### Examples |
15 | 27 | #### EXAMPLE 1 |
16 | 28 | ```PowerShell |
@@ -74,82 +86,82 @@ Invoke-PipeScript .\HelloWorld_Rust.ps1.rs -Parameter @{message='hi'} | |
74 | 86 | Write-Error "Go install Rust" |
75 | 87 | } |
76 | 88 | } |
| 89 | + |
| 90 | + |
77 | 91 | --- |
| 92 | + |
| 93 | + |
78 | 94 | ### Parameters |
79 | 95 | #### **CommandInfo** |
80 | 96 |
|
81 | 97 | The command information. This will include the path to the file. |
82 | 98 |
|
83 | 99 |
|
84 | 100 |
|
85 | | -> **Type**: ```[CommandInfo]``` |
86 | 101 |
|
87 | | -> **Required**: true |
88 | 102 |
|
89 | | -> **Position**: named |
90 | 103 |
|
91 | | -> **PipelineInput**:true (ByValue) |
| 104 | +|Type |Required|Position|PipelineInput | |
| 105 | +|---------------|--------|--------|--------------| |
| 106 | +|`[CommandInfo]`|true |named |true (ByValue)| |
92 | 107 |
|
93 | 108 |
|
94 | 109 |
|
95 | | ---- |
96 | 110 | #### **AsTemplateObject** |
97 | 111 |
|
98 | 112 | If set, will return the information required to dynamically apply this template to any text. |
99 | 113 |
|
100 | 114 |
|
101 | 115 |
|
102 | | -> **Type**: ```[Switch]``` |
103 | 116 |
|
104 | | -> **Required**: true |
105 | 117 |
|
106 | | -> **Position**: named |
107 | 118 |
|
108 | | -> **PipelineInput**:false |
| 119 | +|Type |Required|Position|PipelineInput| |
| 120 | +|----------|--------|--------|-------------| |
| 121 | +|`[Switch]`|true |named |false | |
109 | 122 |
|
110 | 123 |
|
111 | 124 |
|
112 | | ---- |
113 | 125 | #### **Parameter** |
114 | 126 |
|
115 | 127 | A dictionary of parameters. |
116 | 128 |
|
117 | 129 |
|
118 | 130 |
|
119 | | -> **Type**: ```[IDictionary]``` |
120 | 131 |
|
121 | | -> **Required**: false |
122 | 132 |
|
123 | | -> **Position**: named |
124 | 133 |
|
125 | | -> **PipelineInput**:false |
| 134 | +|Type |Required|Position|PipelineInput| |
| 135 | +|---------------|--------|--------|-------------| |
| 136 | +|`[IDictionary]`|false |named |false | |
126 | 137 |
|
127 | 138 |
|
128 | 139 |
|
129 | | ---- |
130 | 140 | #### **ArgumentList** |
131 | 141 |
|
132 | 142 | A list of arguments. |
133 | 143 |
|
134 | 144 |
|
135 | 145 |
|
136 | | -> **Type**: ```[PSObject[]]``` |
137 | 146 |
|
138 | | -> **Required**: false |
139 | 147 |
|
140 | | -> **Position**: named |
141 | 148 |
|
142 | | -> **PipelineInput**:false |
| 149 | +|Type |Required|Position|PipelineInput| |
| 150 | +|--------------|--------|--------|-------------| |
| 151 | +|`[PSObject[]]`|false |named |false | |
| 152 | + |
| 153 | + |
143 | 154 |
|
144 | 155 |
|
145 | 156 |
|
146 | 157 | --- |
| 158 | + |
| 159 | + |
147 | 160 | ### Syntax |
148 | 161 | ```PowerShell |
149 | 162 | Rust.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>] |
150 | 163 | ``` |
151 | 164 | ```PowerShell |
152 | 165 | Rust.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>] |
153 | 166 | ``` |
154 | | ---- |
155 | 167 |
|
0 commit comments