Skip to content

Commit 1ae3054

Browse files
committed
fix: allow asdf to allow multiple. Added description to homebrew schema
1 parent 32065aa commit 1ae3054

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/resources/asdf/asdf-install.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ export class AsdfInstallResource extends Resource<AsdfInstallConfig> {
8383
directory: { type: 'directory' },
8484
versions: { type: 'array' }
8585
},
86+
allowMultiple: {
87+
identifyingParameters: ['plugin', 'directory'],
88+
},
8689
importAndDestroy:{
8790
requiredParameters: ['directory'],
8891
refreshKeys: ['directory']

src/resources/asdf/asdf-plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export class AsdfPluginResource extends Resource<AsdfPluginConfig> {
7878
parameterSettings: {
7979
versions: { type: 'stateful', definition: new AsdfPluginVersionsParameter() }
8080
},
81+
allowMultiple: {
82+
identifyingParameters: ['plugin'],
83+
},
8184
}
8285
}
8386

src/resources/homebrew/homebrew-schema.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,33 @@
33
"$id": "https://www.codifycli.com/homebrew-main.json",
44
"title": "Homebrew plugin main resource",
55
"$comment": "https://codifycli.com/docs/resources/homebrew/",
6-
"description": "Install homebrew and manages formulae, casks and taps.",
6+
"description": "Installs Homebrew and declaratively manages formulae, casks, and taps.",
77
"type": "object",
88
"properties": {
99
"formulae": {
1010
"type": "array",
11+
"description": "A list of Homebrew formulae (command-line packages) to install.",
1112
"items": {
1213
"type": "string"
1314
}
1415
},
1516
"casks": {
1617
"type": "array",
18+
"description": "A list of Homebrew casks (GUI applications) to install.",
1719
"items": {
1820
"type": "string"
1921
}
2022
},
2123
"taps": {
2224
"type": "array",
25+
"description": "A list of Homebrew taps (third-party repositories) to add.",
2326
"items": {
2427
"type": "string"
2528
}
2629
},
2730
"directory": {
28-
"type": "string"
31+
"type": "string",
32+
"description": "The directory where Homebrew is installed. Defaults to the standard Homebrew prefix for your platform."
2933
},
3034
"skipAlreadyInstalledCasks": {
3135
"type": "boolean",

0 commit comments

Comments
 (0)