-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.json
157 lines (157 loc) · 4.57 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"$schema": "https://json-schema.org/draft-04/schema#",
"$id": "https://example.com/packages.schema.json",
"title": "Applications / Packages",
"description": "A schema for defining applications or packages to install on Windows machine.",
"required": ["package_source", "powershell_modules", "package_plugins"],
"type": "object",
"properties": {
"environment_variables": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "value", "command"],
"properties": {
"value": { "type": "string" },
"name": { "type": "string" },
"command": { "type": "string" }
},
"uniqueItems": true
}
},
"package_source": {
"description": "The source (command line) to get package from",
"type": "object",
"required": ["winget", "scoop", "choco"],
"properties": {
"winget": {
"type": "object",
"description": "Install applications using `winget` cli.",
"required": ["auto_install", "packages"],
"properties": {
"auto_install": {
"type": "boolean",
"description": "Whether or not automatically install `winget` cli and install packages from the list if it is not found."
},
"packages": {
"type": "array",
"description": "List of winget packages' IDs to install.",
"uniqueItems": true,
"required": ["id"],
"properties": {
"id": {
"type": "string",
"description": "Winget Package ID"
},
"source": {
"type": "string",
"enum": ["msstore", "winget"]
}
}
},
"additional_args": {
"type": "array",
"description": "Additional args for `winget install [package]`"
}
}
},
"choco": {
"type": "object",
"description": "Install applications using `choco` cli: To add programs for developers which will be available for all users",
"required": ["auto_install", "packages"],
"properties": {
"auto_install": {
"type": "boolean",
"description": "Whether or not automatically install `choco` cli and install packages from the list if it is not found."
},
"packages": {
"type": "array",
"description": "List of choco packages' names to install.",
"uniqueItems": true
},
"additional_args": {
"type": "array",
"description": "Additional args for `choco install [package]`"
}
}
},
"scoop": {
"type": "object",
"description": "Install applications using `scoop` cli: To add packages which installed for current user.",
"required": ["auto_install", "packages", "buckets"],
"properties": {
"auto_install": {
"type": "boolean",
"description": "Whether or not automatically install `scoop` cli and install packages from the list if it is not found."
},
"packages": {
"type": "array",
"description": "List of scoop packages' names to install.",
"uniqueItems": true
},
"buckets": {
"type": "array",
"description": "List of scoop buckets to add.",
"uniqueItems": true
},
"additional_args": {
"type": "array",
"description": "Additional args for `scoop install [package]`"
}
}
}
}
},
"package_plugins": {
"description": "Addons for installed packages",
"type": "array",
"items": {
"type": "object",
"required": ["command_name", "invoke_command", "check_command", "plugins", "install"],
"properties": {
"command_name": {
"type": "string",
"description": "Installed command name"
},
"invoke_command": {
"type": "string",
"description": "Command to invoke to install an addon"
},
"check_command": {
"type": "string",
"description": "Command to if an addon is installed or not"
},
"install": {
"type": "boolean",
"description": "Whether or not to install provided plugins/extensions for application in the list"
},
"plugins": {
"type": "array",
"uniqueItems": true
}
},
"uniqueItems": true
}
},
"powershell_modules": {
"type": "object",
"description": "Powershell Core",
"uniqueItems": true,
"required": ["modules", "install"],
"properties": {
"install": {
"type": "boolean",
"description": "Whether or not to install powershell modules in provided list"
},
"modules": {
"type": "array",
"description": "List of powershell modules"
},
"additional_args": {
"type": "array",
"description": "Additional args for `Install-Module [module name]`"
}
}
}
}
}