@oclif/core 4.3.3 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/help/docopts.js +3 -1
- package/lib/interfaces/pjson.d.ts +14 -0
- package/package.json +3 -3
package/lib/help/docopts.js
CHANGED
|
@@ -102,7 +102,9 @@ class DocOpts {
|
|
|
102
102
|
if (this.cmd.args) {
|
|
103
103
|
// If strict is false, add ellipsis to indicate that the argument takes multiple values
|
|
104
104
|
const suffix = this.cmd.strict === false ? '...' : '';
|
|
105
|
-
const a = Object.values((0, ensure_arg_object_1.ensureArgObject)(this.cmd.args))
|
|
105
|
+
const a = Object.values((0, ensure_arg_object_1.ensureArgObject)(this.cmd.args))
|
|
106
|
+
.filter((arg) => !arg.hidden)
|
|
107
|
+
.map((arg) => arg.required ? `${arg.name.toUpperCase()}${suffix}` : `[${arg.name.toUpperCase()}${suffix}]`) || [];
|
|
106
108
|
opts.push(...a);
|
|
107
109
|
}
|
|
108
110
|
try {
|
|
@@ -241,6 +241,20 @@ export type OclifConfiguration = {
|
|
|
241
241
|
subtopics?: OclifConfiguration['topics'];
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
|
+
/**
|
|
245
|
+
* Tar flags configuration for different platforms.
|
|
246
|
+
*
|
|
247
|
+
* {
|
|
248
|
+
* "tarFlags": {
|
|
249
|
+
* "win32": "--force-local",
|
|
250
|
+
* "darwin": "--no-xattrs"
|
|
251
|
+
* }
|
|
252
|
+
* }
|
|
253
|
+
*
|
|
254
|
+
*/
|
|
255
|
+
tarFlags?: {
|
|
256
|
+
[platform: string]: string;
|
|
257
|
+
};
|
|
244
258
|
update?: {
|
|
245
259
|
autoupdate?: {
|
|
246
260
|
debounce?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/core",
|
|
3
3
|
"description": "base library for oclif CLIs",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@commitlint/config-conventional": "^19",
|
|
29
|
-
"@eslint/compat": "^1.
|
|
29
|
+
"@eslint/compat": "^1.3.1",
|
|
30
30
|
"@oclif/plugin-help": "^6",
|
|
31
31
|
"@oclif/plugin-plugins": "^5",
|
|
32
32
|
"@oclif/prettier-config": "^0.2.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"madge": "^6.1.0",
|
|
59
59
|
"mocha": "^10.8.2",
|
|
60
60
|
"nyc": "^15.1.0",
|
|
61
|
-
"prettier": "^3.
|
|
61
|
+
"prettier": "^3.6.2",
|
|
62
62
|
"shx": "^0.4.0",
|
|
63
63
|
"sinon": "^18",
|
|
64
64
|
"ts-node": "^10.9.2",
|