Skip to content

Commit 4a4f472

Browse files
committed
fix: update cli schema
1 parent 4247ed5 commit 4a4f472

10 files changed

Lines changed: 12 additions & 18 deletions

File tree

lib/commands/deb-repository/build-packages.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ export default class extends Command {
3737
},
3838
},
3939
"arguments": {
40-
"package": {
41-
"description": "Packages to build. Do not specify to build all packages.",
42-
"schema": {
43-
"type": "array",
44-
"items": {
45-
"type": "string",
46-
},
47-
"uniqueItems": true,
48-
},
40+
"pattern": {
41+
"description": "Packages names glob pattern.",
42+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
4943
},
5044
},
5145
};

lib/commands/lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Ignored directories:
5252
"arguments": {
5353
"pattern": {
5454
"description": `File path or glob pattern. You can pass "-" to read files list from STDIN.`,
55-
"schema": { "type": "array", "items": { "type": "string" } },
55+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
5656
},
5757
},
5858
};

lib/commands/ls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class extends Command {
3131
"arguments": {
3232
"pattern": {
3333
"description": "Filter packages using glob patterns.",
34-
"schema": { "type": "array", "items": { "type": "string" } },
34+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
3535
},
3636
},
3737
};

lib/commands/workspace/build-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class extends Command {
1818
"arguments": {
1919
"pattern": {
2020
"description": "Filter packages using glob patterns.",
21-
"schema": { "type": "array", "items": { "type": "string" } },
21+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
2222
},
2323
},
2424
};

lib/commands/workspace/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class extends Command {
1010
"arguments": {
1111
"pattern": {
1212
"description": "Filter packages using glob patterns.",
13-
"schema": { "type": "array", "items": { "type": "string" } },
13+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
1414
},
1515
},
1616
};

lib/commands/workspace/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class extends Command {
1818
"arguments": {
1919
"pattern": {
2020
"description": "Filter packages using glob patterns.",
21-
"schema": { "type": "array", "items": { "type": "string" } },
21+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
2222
},
2323
},
2424
};

lib/commands/workspace/run-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ softvisio-cli workspace run-command -- npm outdated
2626
"arguments": {
2727
"pattern": {
2828
"description": "Filter packages using glob patterns.",
29-
"schema": { "type": "array", "items": { "type": "string" } },
29+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
3030
},
3131
},
3232
};

lib/commands/workspace/run-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class extends Command {
2323
},
2424
"pattern": {
2525
"description": "Filter packages using glob patterns.",
26-
"schema": { "type": "array", "items": { "type": "string" } },
26+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
2727
},
2828
},
2929
};

lib/commands/workspace/update-dependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default class extends Command {
7373
"arguments": {
7474
"pattern": {
7575
"description": "Filter packages using glob patterns.",
76-
"schema": { "type": "array", "items": { "type": "string" } },
76+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
7777
},
7878
},
7979
};

lib/commands/workspace/update-metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class extends Command {
4343
"arguments": {
4444
"pattern": {
4545
"description": "Filter packages using glob patterns.",
46-
"schema": { "type": "array", "items": { "type": "string" } },
46+
"schema": { "type": "array", "items": { "type": "string", "format": "glob-pattern" } },
4747
},
4848
},
4949
};

0 commit comments

Comments
 (0)