-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
93 lines (93 loc) · 2.84 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Sinfonia Configuration",
"description": "Configuration file for Sinfonia process runner",
"type": "object",
"required": ["commands"],
"properties": {
"commands": {
"type": "array",
"description": "List of commands to run",
"items": {
"type": "object",
"required": ["name", "cmd"],
"properties": {
"name": {
"type": "string",
"description": "Name of the command"
},
"cmd": {
"type": "string",
"description": "Command to execute"
},
"color": {
"type": "string",
"description": "Color for the command output",
"enum": ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"]
},
"group": {
"type": "string",
"description": "Group this command belongs to"
},
"dependsOn": {
"type": "array",
"description": "List of commands this command depends on",
"items": {
"type": "string"
}
},
"readyPatterns": {
"type": "object",
"description": "Patterns to match in dependency outputs to determine when they are ready",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"groups": {
"type": "array",
"description": "Optional list of command groups. Groups are automatically created from command 'group' fields, but can be explicitly defined here to customize their properties (like colors)",
"items": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the group"
},
"color": {
"type": "string",
"description": "Color for the group",
"enum": ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"]
},
"commands": {
"type": "array",
"description": "List of command names in this group (auto-generated, no need to specify)",
"items": {
"type": "string"
}
}
}
}
},
"options": {
"type": "object",
"description": "Global options",
"properties": {
"bufferSize": {
"type": "integer",
"description": "Number of log lines to keep in memory per process",
"minimum": 1,
"default": 100
},
"logFile": {
"type": "string",
"description": "Log file path (use {timestamp} for current date/time). If not set, logging is disabled.",
"pattern": ".*\\{timestamp\\}.*"
}
}
}
}
}