|
| 1 | + |
| 2 | +Get-Transpiler |
| 3 | +-------------- |
| 4 | +### Synopsis |
| 5 | +Gets Extensions |
| 6 | + |
| 7 | +--- |
| 8 | +### Description |
| 9 | + |
| 10 | +Gets Extensions. |
| 11 | + |
| 12 | +Transpiler can be found in: |
| 13 | + |
| 14 | +* Any module that includes -TranspilerModuleName in it's tags. |
| 15 | +* The directory specified in -TranspilerPath |
| 16 | + |
| 17 | +--- |
| 18 | +### Examples |
| 19 | +#### EXAMPLE 1 |
| 20 | +```PowerShell |
| 21 | +Get-Transpiler |
| 22 | +``` |
| 23 | + |
| 24 | +--- |
| 25 | +### Parameters |
| 26 | +#### **TranspilerPath** |
| 27 | + |
| 28 | +If provided, will look beneath a specific path for extensions. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +|Type |Requried|Postion|PipelineInput | |
| 33 | +|--------------|--------|-------|---------------------| |
| 34 | +|```[String]```|false |1 |true (ByPropertyName)| |
| 35 | +--- |
| 36 | +#### **Force** |
| 37 | + |
| 38 | +If set, will clear caches of extensions, forcing a refresh. |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +|Type |Requried|Postion|PipelineInput| |
| 43 | +|--------------|--------|-------|-------------| |
| 44 | +|```[Switch]```|false |named |false | |
| 45 | +--- |
| 46 | +#### **CommandName** |
| 47 | + |
| 48 | +If provided, will get Transpiler that extend a given command |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +|Type |Requried|Postion|PipelineInput | |
| 53 | +|----------------|--------|-------|---------------------| |
| 54 | +|```[String[]]```|false |2 |true (ByPropertyName)| |
| 55 | +--- |
| 56 | +#### **TranspilerName** |
| 57 | + |
| 58 | +The name of an extension. |
| 59 | +By default, this will match any extension command whose name, displayname, or aliases exactly match the name. |
| 60 | + |
| 61 | +If the extension has an Alias with a regular expression literal (```'/Expression/'```) then the -TranspilerName will be valid if that regular expression matches. |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +|Type |Requried|Postion|PipelineInput | |
| 66 | +|----------------|--------|-------|---------------------| |
| 67 | +|```[String[]]```|false |3 |true (ByPropertyName)| |
| 68 | +--- |
| 69 | +#### **Like** |
| 70 | + |
| 71 | +If provided, will treat -TranspilerName as a wildcard. |
| 72 | +This will return any extension whose name, displayname, or aliases are like the -TranspilerName. |
| 73 | + |
| 74 | +If the extension has an Alias with a regular expression literal, then extension name will be valid if that regular expression matches. |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +|Type |Requried|Postion|PipelineInput | |
| 79 | +|--------------|--------|-------|---------------------| |
| 80 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 81 | +--- |
| 82 | +#### **Match** |
| 83 | + |
| 84 | +If provided, will treat -TranspilerName as a regular expression. |
| 85 | +This will return any extension whose name, displayname, or aliases match the -TranspilerName. |
| 86 | + |
| 87 | +If the extension has an Alias with a regular expression literal, then extension name will be valid if that regular expression matches. |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +|Type |Requried|Postion|PipelineInput | |
| 92 | +|--------------|--------|-------|---------------------| |
| 93 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 94 | +--- |
| 95 | +#### **DynamicParameter** |
| 96 | + |
| 97 | +If set, will return the dynamic parameters object of all the Transpiler for a given command. |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | +|Type |Requried|Postion|PipelineInput | |
| 102 | +|--------------|--------|-------|---------------------| |
| 103 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 104 | +--- |
| 105 | +#### **CouldRun** |
| 106 | + |
| 107 | +If set, will return if the extension could run. |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | +|Type |Requried|Postion|PipelineInput | |
| 112 | +|--------------|--------|-------|---------------------| |
| 113 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 114 | +--- |
| 115 | +#### **CouldPipe** |
| 116 | + |
| 117 | +If set, will return if the extension could accept this input from the pipeline. |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +|Type |Requried|Postion|PipelineInput| |
| 122 | +|----------------|--------|-------|-------------| |
| 123 | +|```[PSObject]```|false |4 |false | |
| 124 | +--- |
| 125 | +#### **Run** |
| 126 | + |
| 127 | +If set, will run the extension. If -Stream is passed, results will be directly returned. |
| 128 | +By default, extension results are wrapped in a return object. |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | +|Type |Requried|Postion|PipelineInput | |
| 133 | +|--------------|--------|-------|---------------------| |
| 134 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 135 | +--- |
| 136 | +#### **Stream** |
| 137 | + |
| 138 | +If set, will stream output from running the extension. |
| 139 | +By default, extension results are wrapped in a return object. |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | +|Type |Requried|Postion|PipelineInput | |
| 144 | +|--------------|--------|-------|---------------------| |
| 145 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 146 | +--- |
| 147 | +#### **DynamicParameterSetName** |
| 148 | + |
| 149 | +If set, will return the dynamic parameters of all Transpiler for a given command, using the provided DynamicParameterSetName. |
| 150 | +Implies -DynamicParameter. |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | +|Type |Requried|Postion|PipelineInput | |
| 155 | +|--------------|--------|-------|---------------------| |
| 156 | +|```[String]```|false |5 |true (ByPropertyName)| |
| 157 | +--- |
| 158 | +#### **DynamicParameterPositionOffset** |
| 159 | + |
| 160 | +If provided, will return the dynamic parameters of all Transpiler for a given command, with all positional parameters offset. |
| 161 | +Implies -DynamicParameter. |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | +|Type |Requried|Postion|PipelineInput | |
| 166 | +|-------------|--------|-------|---------------------| |
| 167 | +|```[Int32]```|false |6 |true (ByPropertyName)| |
| 168 | +--- |
| 169 | +#### **NoMandatoryDynamicParameter** |
| 170 | + |
| 171 | +If set, will return the dynamic parameters of all Transpiler for a given command, with all mandatory parameters marked as optional. |
| 172 | +Implies -DynamicParameter. Does not actually prevent the parameter from being Mandatory on the Extension. |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | +|Type |Requried|Postion|PipelineInput | |
| 177 | +|--------------|--------|-------|---------------------| |
| 178 | +|```[Switch]```|false |named |true (ByPropertyName)| |
| 179 | +--- |
| 180 | +#### **ValidateInput** |
| 181 | + |
| 182 | +If set, will validate this input against [ValidateScript], [ValidatePattern], [ValidateSet], and [ValidateRange] attributes found on an extension. |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | +|Type |Requried|Postion|PipelineInput | |
| 187 | +|----------------|--------|-------|---------------------| |
| 188 | +|```[PSObject]```|false |7 |true (ByPropertyName)| |
| 189 | +--- |
| 190 | +#### **AllValid** |
| 191 | + |
| 192 | +If set, will validate this input against all [ValidateScript], [ValidatePattern], [ValidateSet], and [ValidateRange] attributes found on an extension. |
| 193 | +By default, if any validation attribute returned true, the extension is considered validated. |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | +|Type |Requried|Postion|PipelineInput| |
| 198 | +|--------------|--------|-------|-------------| |
| 199 | +|```[Switch]```|false |named |false | |
| 200 | +--- |
| 201 | +#### **ParameterSetName** |
| 202 | + |
| 203 | +The name of the parameter set. This is used by -CouldRun and -Run to enforce a single specific parameter set. |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | +|Type |Requried|Postion|PipelineInput | |
| 208 | +|--------------|--------|-------|---------------------| |
| 209 | +|```[String]```|false |8 |true (ByPropertyName)| |
| 210 | +--- |
| 211 | +#### **Parameter** |
| 212 | + |
| 213 | +The parameters to the extension. Only used when determining if the extension -CouldRun. |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | +|Type |Requried|Postion|PipelineInput | |
| 218 | +|-------------------|--------|-------|---------------------| |
| 219 | +|```[IDictionary]```|false |9 |true (ByPropertyName)| |
| 220 | +--- |
| 221 | +#### **SteppablePipeline** |
| 222 | + |
| 223 | +If set, will output a steppable pipeline for the extension. |
| 224 | +Steppable pipelines allow you to control how begin, process, and end are executed in an extension. |
| 225 | +This allows for the execution of more than one extension at a time. |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | +|Type |Requried|Postion|PipelineInput| |
| 230 | +|--------------|--------|-------|-------------| |
| 231 | +|```[Switch]```|false |named |false | |
| 232 | +--- |
| 233 | +#### **Help** |
| 234 | + |
| 235 | +If set, will output the help for the extensions |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | +|Type |Requried|Postion|PipelineInput| |
| 240 | +|--------------|--------|-------|-------------| |
| 241 | +|```[Switch]```|false |named |false | |
| 242 | +--- |
| 243 | +#### **ParameterHelp** |
| 244 | + |
| 245 | +If set, will get help about one or more parameters of an extension |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | +|Type |Requried|Postion|PipelineInput| |
| 250 | +|----------------|--------|-------|-------------| |
| 251 | +|```[String[]]```|false |10 |false | |
| 252 | +--- |
| 253 | +#### **Example** |
| 254 | + |
| 255 | +If set, will get help examples |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | +|Type |Requried|Postion|PipelineInput| |
| 260 | +|--------------|--------|-------|-------------| |
| 261 | +|```[Switch]```|false |named |false | |
| 262 | +--- |
| 263 | +#### **FullHelp** |
| 264 | + |
| 265 | +If set, will output the full help for the extensions |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | +|Type |Requried|Postion|PipelineInput| |
| 270 | +|--------------|--------|-------|-------------| |
| 271 | +|```[Switch]```|false |named |false | |
| 272 | +--- |
| 273 | +### Outputs |
| 274 | +Extension |
| 275 | + |
| 276 | + |
| 277 | +--- |
| 278 | +### Syntax |
| 279 | +```PowerShell |
| 280 | +Get-Transpiler [[-TranspilerPath] <String>] [-Force] [[-CommandName] <String[]>] [[-TranspilerName] <String[]>] [-Like] [-Match] [-DynamicParameter] [-CouldRun] [[-CouldPipe] <PSObject>] [-Run] [-Stream] [[-DynamicParameterSetName] <String>] [[-DynamicParameterPositionOffset] <Int32>] [-NoMandatoryDynamicParameter] [[-ValidateInput] <PSObject>] [-AllValid] [[-ParameterSetName] <String>] [[-Parameter] <IDictionary>] [-SteppablePipeline] [-Help] [[-ParameterHelp] <String[]>] [-Example] [-FullHelp] [<CommonParameters>] |
| 281 | +``` |
| 282 | +--- |
| 283 | + |
| 284 | + |
0 commit comments