-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.json
More file actions
99 lines (99 loc) · 2.48 KB
/
example.json
File metadata and controls
99 lines (99 loc) · 2.48 KB
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
{
"$schema": "https://raw.githubusercontent.com/BenjaminGuzman/microstart/main/src/main/resources/schema.json",
"services": [
{
"name": "Search engine",
"start": "ping -c 2 google.com",
"aliases": [
"search",
"google"
],
"color": "0x00ff00",
"startedPatterns": [
"[^0-9]0% packet loss"
],
"errorPatterns": [
"([1-9][0-9]?|100)% packet loss"
]
},
{
"name": "Users",
"start": "echo \"Loading service...\" && sleep 1 && echo \"Config loaded\" && sleep 1 && echo \"RPC server is listening on port 1111\"",
"aliases": [
"rpc-users",
"users"
],
"color": "0xff00ff",
"startedPatterns": [
"(Service|Server) is listening"
],
"errorPatterns": [
"error"
]
},
{
"name": "Crypto",
"aliases": [
"crypto"
],
"start": "echo \"...\" && sleep 1 && echo \"Done.\"",
"color": "0x0000ff",
"startedPatterns": [
"done"
],
"errorPatterns": [
"error"
]
},
{
"name": "Landing page",
"aliases": [
"landing"
],
"start": "sleep 5 && echo \"Compilation finished.\"",
"color": "0xf0f0f0",
"startedPatterns": [
"Compilation finished"
],
"errorPatterns": [
"error"
]
}
],
"groups": [
{
"name": "Frontend services",
"aliases": [
"frontend"
],
"services": [
"landing"
],
"dependencies": [
"backend"
]
},
{
"name": "Backend services",
"aliases": [
"backend"
],
"services": [
"crypto",
"users"
],
"dependencies": [
"search"
]
},
{
"name": "Search Engine",
"aliases": [
"search"
],
"services": [
"google"
]
}
]
}