/
schema.json
134 lines (134 loc) · 5.07 KB
/
schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"autoload",
"merge",
"executables",
"translations",
"ansi",
"quiet",
"tasks"
],
"properties": {
"autoload": {
"title": "Autoload File (PHP autoloader)",
"description": "The autoload file to use (useful when using PHP callable as task executable).",
"type": [
"string",
"null"
]
},
"merge": {
"title": "Merge Config",
"description": "Whether or not to merge the supplied executables/translations with the default ones.",
"type": "boolean"
},
"executables": {
"title": "Runner Loadable Tasks",
"description": "The executables to load as tasks ('key' = executor, 'value' = an array of executables).",
"type": "object",
"required": [],
"properties": {
"executor": {
"title": "Executables",
"description": "An array of executables.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"translations": {
"title": "Runner Task Name Translations",
"description": "The translations to apply to tasks names.",
"type": "object",
"required": [],
"properties": {
"from": {
"type": "string"
}
}
},
"ansi": {
"title": "Runner Output Coloring",
"description": "Whether or not to turn on ANSI colors for the output.",
"type": "boolean"
},
"quiet": {
"title": "Runner Output Suppression",
"description": "Whether or not to turn on the output.",
"type": "boolean"
},
"tasks": {
"title": "Runner Configurable Tasks",
"description": "The tasks to add.",
"type": "object",
"required": [],
"patternProperties": {
".+": {
"title": "Runner Task",
"description": "Task definition ('key' = task fallback name, 'value' = task parameters).",
"type": "object",
"required": [
"executor",
"executable"
],
"properties": {
"name": {
"title": "Task Name",
"description": "If not specified, the key of the containing array will be used instead.",
"type": [
"string",
"null"
]
},
"description": {
"title": "Task Description",
"description": "If not specified a fallback will be used instead.",
"type": [
"string",
"null"
]
},
"executor": {
"title": "Task Executor",
"description": "Valid values are 'shell', 'callback', or any available program executable (for example 'php' is used for PHP).",
"type": "string",
"enum": [
"shell",
"callback"
]
},
"executable": {
"title": "Task Executable",
"description": "Either a string containing a shell command or a path to an executable file",
"type": [
"string"
]
},
"arguments": {
"title": "Task Arguments",
"description": "A string containing shell command options/arguments.",
"type": [
"string",
"null"
]
},
"hidden": {
"title": "Task Visibility",
"description": "Whether or not to hide the task from being listed.",
"type": "boolean"
},
"disabled": {
"title": "Task Availability",
"description": "Whether or not to prevent the task from being ran.",
"type": "boolean"
}
}
}
}
}
}
}