We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3bd90 commit c8c8115Copy full SHA for c8c8115
snippets/PowerShell.json
@@ -1032,5 +1032,19 @@
1032
"#Requires -Version ${1:Version}"
1033
],
1034
"description": "Require a minimum version of PowerShell to run the script."
1035
+ },
1036
+ "RequiresPSSnapinDirective": {
1037
+ "prefix": "require-snapin",
1038
+ "body": [
1039
+ "#Requires -PSSnapin ${1:Name}"
1040
+ ],
1041
+ "description": "Require a PowerShell snap-in to run the script."
1042
1043
+ "RequiresPSSnapinVersionDirective": {
1044
+ "prefix": "require-snapin-version",
1045
1046
+ "#Requires -PSSnapIn ${1:Name} -Version ${2:Version}"
1047
1048
+ "description": "Require a PowerShell snap-in of minimum version to run the script."
1049
}
1050
0 commit comments