Skip to content

Commit a8bacf6

Browse files
committed
add new param with link to Argument Completer Docs
1 parent 42e594b commit a8bacf6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

snippets/PowerShell.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@
304304
"\t\t[ValidateLength(0, 15)]",
305305
"\t\t[String]",
306306
"\t\t\\$Param3",
307+
"",
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 differnet ways to provide Argumnet Completion",
309+
"\t\t[Parameter(ParameterSetName = 'Yet Another Parameter Set')]",
310+
"\t\t[ArgumentCompleter({'add script'})]",
311+
"\t\t[ValidateLength(0, 15)]",
312+
"\t\t[String]",
313+
"\t\t\\$Param4",
307314
"\t)",
308315
"",
309316
"\tbegin {",

0 commit comments

Comments
 (0)