-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_config.json
More file actions
113 lines (113 loc) · 2.25 KB
/
example_config.json
File metadata and controls
113 lines (113 loc) · 2.25 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"temp_dir": "~/.machine_setup",
"default_shell": "bash",
"parallel": false,
"tasks": {
"greet": {
"commands": [
{
"run": {
"commands": "echo 'Hello from machine_setup v2!'"
}
}
]
},
"multi_step": {
"commands": [
{
"run": {
"commands": [
"echo 'Step 1: Checking environment...'",
"echo 'Step 2: Configuring settings...'",
"echo 'Step 3: All done!'"
]
}
}
]
},
"with_env_vars": {
"commands": [
{
"run": {
"env": {
"MY_NAME": "machine_setup",
"VERSION": "2.0"
},
"commands": "echo \"Running $MY_NAME v$VERSION\""
}
}
]
},
"mode_specific": {
"commands": [
{
"run": {
"install": "echo 'Installing components...'",
"update": "echo 'Updating components...'",
"uninstall": "echo 'Removing components...'"
}
}
]
},
"windows_task": {
"os": "windows",
"commands": [
{
"run": {
"commands": "echo 'This runs only on Windows'"
}
}
]
},
"linux_task": {
"os": "linux",
"commands": [
{
"run": {
"commands": "echo 'This runs only on Linux'"
}
}
]
},
"macos_task": {
"os": "macos",
"commands": [
{
"run": {
"commands": "echo 'This runs only on macOS'"
}
}
]
},
"cross_platform": {
"os": ["linux", "macos", "windows"],
"commands": [
{
"run": {
"commands": "echo 'This runs on all desktop platforms'"
}
}
]
},
"parallel_commands": {
"parallel": true,
"commands": [
{
"run": {
"commands": "echo 'Command A (parallel)'"
}
},
{
"run": {
"commands": "echo 'Command B (parallel)'"
}
},
{
"run": {
"commands": "echo 'Command C (parallel)'"
}
}
]
}
}
}