-
Notifications
You must be signed in to change notification settings - Fork 7
/
menu.nomad.actions.json
195 lines (195 loc) · 7.54 KB
/
menu.nomad.actions.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"title": "menu.nomad.actions",
"description": "Preference Domain: menu.nomad.actions, Application: NoMAD",
"__version": "1.2.0",
"__feedback": "[email protected]",
"type": "object",
"options": {
"remove_empty_properties": true
},
"definitions": {
"CommandObject": {
"Command": {
"type": "string",
"enum": ["path", "app", "url", "ping", "adgroup", "alert", "notify", "false", "true"],
"enum_titles": [
"Excute a binary at a specific file path",
"Launch an app at a specific file path",
"Launch a URL in the user's default browser",
"Ping a host, will return false if the host is unpingable",
"Determine if the current user is a member of an AD group",
"Display a modal dialog to the user",
"Display a notification in the notification center",
"A command that always returns false",
"A command that always returns true"
]
},
"CommandOptions": {
"type": "string"
}
}
},
"properties": {
"Version": {
"description": "This is the version number of the file format. Currently, the only version is 1.",
"propertyOrder": 10,
"type": "integer",
"enum": [1],
"default": 1
},
"MenuIcon": {
"description": "Determines if the Actions menu itself will have a red/yellow/green light next to it.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "boolean"
}
]
},
"MenuText": {
"description": "Determines if the text of the main Action menu be the result of a command.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "boolean"
}
]
},
"Actions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Name": {
"description": "Plaintext name of the Action. Will be used for the menu name if a Title isn't given.",
"type": "string"
},
"Title": {
"description": "Command Set that determines the name of the menu item.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "object",
"properties": {
"$ref": "#/definitions/CommandObject"
}
}
]
},
"Show": {
"description": "Command Set that determine if the item should be shown in the menu.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "array",
"items": {
"$ref": "#/definitions/CommandObject"
}
}
]
},
"Action": {
"description": "Command Set that make up the actual Action itself.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "array",
"items": {
"$ref": "#/definitions/CommandObject"
}
}
]
},
"Post": {
"description": "Command Set that will happen after the Action commands are run.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "array",
"items": {
"$ref": "#/definitions/CommandObject"
}
}
]
},
"GUID": {
"description": "Unique ID for the Action.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "string"
}
]
},
"Connected": {
"description": "If the action set should only be run when connected to the AD domain.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "boolean"
}
]
},
"Timer": {
"description": "Length in minutes between firing the Action.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "integer"
}
]
},
"ToolTip": {
"description": "The text to be shown when hovering over the menu item.",
"anyOf": [
{
"title": "Not Configured",
"type": "null"
},
{
"title": "Configured",
"type": "string"
}
]
}
}
}
}
}
}