|
275 | 275 | "\t[OutputType([String])]", |
276 | 276 | "\tparam (", |
277 | 277 | "\t\t# Param1 help description", |
278 | | - "\t\t[Parameter(Mandatory = \\$true,", |
279 | | - "\t\t\tValueFromPipeline = \\$true,", |
280 | | - "\t\t\tValueFromPipelineByPropertyName = \\$true,", |
281 | | - "\t\t\tValueFromRemainingArguments = \\$false,", |
| 278 | + "\t\t[Parameter(Mandatory,", |
| 279 | + "\t\t\tValueFromPipeline,", |
| 280 | + "\t\t\tValueFromPipelineByPropertyName,", |
| 281 | + "\t\t\tValueFromRemainingArguments,", |
282 | 282 | "\t\t\tPosition = 0,", |
283 | 283 | "\t\t\tParameterSetName = 'Parameter Set 1')]", |
284 | 284 | "\t\t[ValidateNotNull()]", |
|
307 | 307 | "", |
308 | 308 | "\t\t# Checkout the docs https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_argument_completion?view=powershell-7.5#argumentcompletions-attribute on different ways to provide Argument Completion", |
309 | 309 | "\t\t[Parameter(ParameterSetName = 'Yet Another Parameter Set')]", |
310 | | - "\t\t[ArgumentCompleter({'add script'})]", |
| 310 | + "\t\t[ArgumentCompleter({'add completer script'})]", |
311 | 311 | "\t\t[ValidateLength(0, 15)]", |
312 | 312 | "\t\t[String]", |
313 | 313 | "\t\t\\$Param4", |
|
0 commit comments