Skip to content

Commit 04eb12b

Browse files
committed
drop use of $true for param attributes
1 parent 788eab1 commit 04eb12b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

snippets/PowerShell.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@
275275
"\t[OutputType([String])]",
276276
"\tparam (",
277277
"\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,",
282282
"\t\t\tPosition = 0,",
283283
"\t\t\tParameterSetName = 'Parameter Set 1')]",
284284
"\t\t[ValidateNotNull()]",
@@ -307,7 +307,7 @@
307307
"",
308308
"\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",
309309
"\t\t[Parameter(ParameterSetName = 'Yet Another Parameter Set')]",
310-
"\t\t[ArgumentCompleter({'add script'})]",
310+
"\t\t[ArgumentCompleter({'add completer script'})]",
311311
"\t\t[ValidateLength(0, 15)]",
312312
"\t\t[String]",
313313
"\t\t\\$Param4",

0 commit comments

Comments
 (0)