-
Notifications
You must be signed in to change notification settings - Fork 20
/
powershell.json
95 lines (95 loc) · 1.72 KB
/
powershell.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"rule": {
"prefix": "rule",
"description": "Rule definition",
"body": [
"# Synopsis: ${2}",
"Rule '${1}' {",
"\t$0",
"}"
]
},
"ruleIf": {
"prefix": "rule-if",
"description": "Rule definition with script precondition",
"body": [
"# Synopsis: ${2}",
"Rule '${1}' -If { ${3} } {",
"\t$0",
"}"
]
},
"ruleType": {
"prefix": "rule-type",
"description": "Rule definition with type precondition",
"body": [
"# Synopsis: ${2}",
"Rule '${1}' -Type '${3}' {",
"\t$0",
"}"
]
},
"ruleExtended": {
"prefix": "rule-extended",
"description": "Rule definition with script precondition and tags",
"body": [
"# Synopsis: ${2}",
"Rule '${1}' -If { ${3} } -Tag @{ ${4} } {",
"\t$0",
"}"
]
},
"anyOf": {
"prefix": "anyOf",
"description": "AnyOf condition block",
"body": [
"AnyOf {",
"\t$0",
"}"
]
},
"allOf": {
"prefix": "allOf",
"description": "AllOf condition block",
"body": [
"AllOf {",
"\t$0",
"}"
]
},
"exists": {
"prefix": "exists",
"description": "Exists condition",
"body": [
"Exists '$0'"
]
},
"within": {
"prefix": "within",
"description": "Within condition",
"body": [
"Within '$1' '$0'"
]
},
"typeOf": {
"prefix": "typeOf",
"description": "TypeOf condition",
"body": [
"TypeOf '$0'"
]
},
"recommend": {
"prefix": "recommend",
"description": "Recommend message",
"body": [
"Recommend '$0'"
]
},
"reason": {
"prefix": "reason",
"description": "Reason message",
"body": [
"Reason '$0'"
]
}
}