Skip to content

Commit f0adf32

Browse files
Add snippet named 'RequiresShellIdDirective'
1 parent 203f489 commit f0adf32

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
@@ -1074,5 +1074,12 @@
10741074
"#Requires -PSEdition ${1|Core,Desktop|}"
10751075
],
10761076
"description": "Require a PowerShell edition to run the script."
1077+
},
1078+
"RequiresShellIdDirective": {
1079+
"prefix": "require-shell",
1080+
"body": [
1081+
"#Requires -ShellId ${1:ID}"
1082+
],
1083+
"description": "Require a specific shell to run the script."
10771084
}
10781085
}

0 commit comments

Comments
 (0)