Skip to content

Commit d803154

Browse files
committed
📦 build: add additional_args for command in schema
1 parent 49d54be commit d803154

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

schema.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
"package_source": {
2323
"description": "The source (command line) to get package from",
2424
"type": "object",
25+
"required": ["winget", "scoop", "choco"],
2526
"properties": {
2627
"winget": {
2728
"type": "object",
2829
"description": "Install applications using `winget` cli.",
30+
"required": ["auto_install", "packages"],
2931
"properties": {
3032
"auto_install": {
3133
"type": "boolean",
@@ -35,12 +37,17 @@
3537
"type": "array",
3638
"description": "List of winget packages' IDs to install.",
3739
"uniqueItems": true
40+
},
41+
"additional_args": {
42+
"type": "array",
43+
"description": "Additional args for `winget install [package]`"
3844
}
3945
}
4046
},
4147
"choco": {
4248
"type": "object",
4349
"description": "Install applications using `choco` cli: To add programs for developers which will be available for all users",
50+
"required": ["auto_install", "packages"],
4451
"properties": {
4552
"auto_install": {
4653
"type": "boolean",
@@ -50,13 +57,17 @@
5057
"type": "array",
5158
"description": "List of choco packages' names to install.",
5259
"uniqueItems": true
60+
},
61+
"additional_args": {
62+
"type": "array",
63+
"description": "Additional args for `choco install [package]`"
5364
}
5465
}
5566
},
5667
"scoop": {
5768
"type": "object",
5869
"description": "Install applications using `scoop` cli: To add packages which installed for current user.",
59-
"required": ["auto_install", "packages"],
70+
"required": ["auto_install", "packages", "buckets"],
6071
"properties": {
6172
"auto_install": {
6273
"type": "boolean",
@@ -71,6 +82,10 @@
7182
"type": "array",
7283
"description": "List of scoop buckets to add.",
7384
"uniqueItems": true
85+
},
86+
"additional_args": {
87+
"type": "array",
88+
"description": "Additional args for `scoop install [package]`"
7489
}
7590
}
7691
}
@@ -81,7 +96,7 @@
8196
"type": "array",
8297
"items": {
8398
"type": "object",
84-
"required": ["invoke_command", "check_command", "plugins"],
99+
"required": ["command_name", "invoke_command", "check_command", "plugins", "install"],
85100
"properties": {
86101
"name": { "type": "string" },
87102
"invoke_command": {
@@ -98,12 +113,7 @@
98113
},
99114
"plugins": {
100115
"type": "array",
101-
"properties": {
102-
"plugin_name": { "type": "string" },
103-
"plugin_full_name": { "type": "string" },
104-
"version": { "type": "string" }
105-
},
106-
"required": ["plugin_full_name", "install"]
116+
"uniqueItems": true
107117
}
108118
},
109119
"uniqueItems": true

0 commit comments

Comments
 (0)