balena-cli 23.1.4-build-renovate-apple-actions-import-codesign-certs-3-x-4382f57b2b5ee165aee50f45548b56c8d09d792f-1 → 23.1.4-build-remove-help-patch-91cf9f3515ee54c5cc2a2ea305a31fa2a66003ab-3
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/CHANGELOG.md +1 -1
- package/build/app.js +16 -0
- package/build/app.js.map +1 -1
- package/build/help.d.ts +5 -1
- package/build/help.js +24 -0
- package/build/help.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +136 -136
- package/package.json +2 -2
- package/src/app.ts +29 -1
- package/src/help.ts +43 -1
- package/patches/all/@oclif+core+4.5.6.patch +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## 23.1.4 - 2025-11-19
|
|
8
8
|
|
|
9
|
-
*
|
|
9
|
+
* Remove the oclif/core patches in favor oclif overrides & customization [Thodoris Greasidis]
|
|
10
10
|
|
|
11
11
|
## 23.1.3 - 2025-11-19
|
|
12
12
|
|
package/build/app.js
CHANGED
|
@@ -77,6 +77,22 @@ async function oclifRun(command, options) {
|
|
|
77
77
|
isEEXIT = true;
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
|
+
if (error instanceof core_1.Errors.CLIError) {
|
|
81
|
+
const RequiredArgsErrorRegex = /^Missing (\d+) required arg(s?\b)/;
|
|
82
|
+
if (RequiredArgsErrorRegex.exec(error.message) != null) {
|
|
83
|
+
error.message = error.message
|
|
84
|
+
.split('\n')
|
|
85
|
+
.map((line, i) => {
|
|
86
|
+
if (i === 0) {
|
|
87
|
+
return line.replace(RequiredArgsErrorRegex, 'Missing $1 required argument$2');
|
|
88
|
+
}
|
|
89
|
+
return line.replace(/^(?<argName>[\w-]+)(?<paddingSpaces>[ ]+)[ ](?<description>\w)/, '$<argName>$<paddingSpaces>: $<description>');
|
|
90
|
+
})
|
|
91
|
+
.join('\n');
|
|
92
|
+
const helpCommand = `balena ${command.map((c, i) => (i === 0 ? c.replace(/:/g, ' ') : c)).join(' ')} --help`;
|
|
93
|
+
error.message = error.message.replace('\nSee more help with --help', `\nSee more help with \`${helpCommand}\``);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
80
96
|
throw error;
|
|
81
97
|
}
|
|
82
98
|
}
|
package/build/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;AAoEA,0CAEC;
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;AAoEA,0CAEC;AAgHD,kBA4BC;AAjMD,+CAA+C;AAE/C,2CAIqB;AACrB,iDAAgD;AAChD,uCAAyC;AACzC,sCAA+D;AAMlD,QAAA,WAAW,GAAG,IAAA,gBAAS,EAAC,KAAK,IAAI,EAAE;IAC/C,MAAM,MAAM,GAAG,2CAAa,UAAU,EAAC,CAAC;IACxC,MAAM,MAAM,GAAG,2CAAa,cAAc,EAAC,CAAC;IAC5C,MAAM,CAAC,IAAI,CAAC;QACX,GAAG,EAAE,MAAM,CAAC,SAAS;QACrB,OAAO,EAAE,WAAW,CAAC,OAAO;KAC5B,CAAC,CAAC;IACH,MAAM,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC;QAClC,YAAY,EAAE,OAAO,CAAC,OAAO;QAC7B,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,KAAK,UAAU,gBAAgB;IAC9B,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;IACnD,IAAI,CAAC,CAAC,2CAAa,QAAQ,EAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,CAAC;QA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AG,OAAO,CAAC,IAAI,EAAE,OAAmB;IACpE,IAAI,CAAC;QACJ,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,2CACnD,mBAAmB,EACnB,CAAC;QACF,qBAAqB,EAAE,CAAC;QACxB,gBAAgB,EAAE,CAAC;QAEnB,MAAM,IAAI,EAAE,CAAC;QAGb,IAAA,+BAAmB,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtC,MAAM,IAAI,GAAG,MAAM,IAAA,wBAAY,EAAC,OAAO,CAAC,CAAC;QACzC,MAAM,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,MAAM,CAAC,2CAAa,UAAU,EAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACnD,CAAC;YAAS,CAAC;QACV,IAAI,CAAC;YACJ,CAAC,2CAAa,aAAa,EAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACtC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;gBACvB,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,EAAE,CAAC,CAAC;YACnD,CAAC;QACF,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;AACF,CAAC"}
|
package/build/help.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type { Command } from '@oclif/core';
|
|
1
|
+
import type { Command, Interfaces } from '@oclif/core';
|
|
2
2
|
import { Help } from '@oclif/core';
|
|
3
3
|
import type { ResolvableReturnType } from 'balena-sdk/typings/utils';
|
|
4
4
|
export default class BalenaHelp extends Help {
|
|
5
|
+
private SUPPRESS_SUBTOPICS_DEPTH;
|
|
6
|
+
protected get sortedCommands(): Command.Loadable[];
|
|
7
|
+
protected get sortedTopics(): Interfaces.Topic[];
|
|
8
|
+
showCommandHelp(command: Command.Loadable): Promise<void>;
|
|
5
9
|
showHelp(argv: string[]): Promise<void>;
|
|
6
10
|
getCustomRootHelp(showAllCommands: boolean): string;
|
|
7
11
|
protected formatGlobalOpts(opts: string[][]): string;
|
package/build/help.js
CHANGED
|
@@ -20,6 +20,7 @@ function getHelpSubject(args) {
|
|
|
20
20
|
class BalenaHelp extends core_1.Help {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
|
+
this.SUPPRESS_SUBTOPICS_DEPTH = null;
|
|
23
24
|
this.manuallySortedPrimaryCommands = [
|
|
24
25
|
'login',
|
|
25
26
|
'push',
|
|
@@ -32,6 +33,29 @@ class BalenaHelp extends core_1.Help {
|
|
|
32
33
|
'leave',
|
|
33
34
|
];
|
|
34
35
|
}
|
|
36
|
+
get sortedCommands() {
|
|
37
|
+
const commands = super.sortedCommands;
|
|
38
|
+
if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
|
|
39
|
+
return commands;
|
|
40
|
+
}
|
|
41
|
+
const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
|
|
42
|
+
return commands.filter((c) => c.id.split(':').length <= depth);
|
|
43
|
+
}
|
|
44
|
+
get sortedTopics() {
|
|
45
|
+
const topics = super.sortedTopics;
|
|
46
|
+
if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
|
|
47
|
+
return topics;
|
|
48
|
+
}
|
|
49
|
+
const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
|
|
50
|
+
return topics.filter((t) => t.name.split(':').length <= depth);
|
|
51
|
+
}
|
|
52
|
+
async showCommandHelp(command) {
|
|
53
|
+
const name = command.id;
|
|
54
|
+
const depth = name.split(':').length;
|
|
55
|
+
this.SUPPRESS_SUBTOPICS_DEPTH = depth;
|
|
56
|
+
await super.showCommandHelp(command);
|
|
57
|
+
this.SUPPRESS_SUBTOPICS_DEPTH = null;
|
|
58
|
+
}
|
|
35
59
|
async showHelp(argv) {
|
|
36
60
|
const ux = (0, lazy_1.getCliUx)();
|
|
37
61
|
const subject = getHelpSubject(argv);
|
package/build/help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":";;AAiBA,sCAAmC;AACnC,wCAAwC;AAExC,uCAAwC;AAKxC,SAAS,cAAc,CAAC,IAAc;IACrC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YAClB,OAAO;QACR,CAAC;QACD,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;YACxC,SAAS;QACV,CAAC;QACD,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO;QACR,CAAC;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;AACF,CAAC;
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":";;AAiBA,sCAAmC;AACnC,wCAAwC;AAExC,uCAAwC;AAKxC,SAAS,cAAc,CAAC,IAAc;IACrC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YAClB,OAAO;QACR,CAAC;QACD,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;YACxC,SAAS;QACV,CAAC;QACD,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO;QACR,CAAC;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;AACF,CAAC;AAGD,MAAqB,UAAW,SAAQ,WAAI;IAA5C;;QACS,6BAAwB,GAAkB,IAAI,CAAC;QAqO9C,kCAA6B,GAAG;YACxC,OAAO;YACP,MAAM;YACN,OAAO;YACP,QAAQ;YACR,SAAS;YACT,OAAO;YACP,QAAQ;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AE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC3C,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;YAC1D,IAAI,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,CAAC;QACD,OAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CAaD;AAjPD,6BAiPC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "23.1.4-build-
|
|
3
|
+
"version": "23.1.4-build-remove-help-patch-91cf9f3515ee54c5cc2a2ea305a31fa2a66003ab-3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "balena-cli",
|
|
9
|
-
"version": "23.1.4-build-
|
|
9
|
+
"version": "23.1.4-build-remove-help-patch-91cf9f3515ee54c5cc2a2ea305a31fa2a66003ab-3",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
package/oclif.manifest.json
CHANGED
|
@@ -160,56 +160,6 @@
|
|
|
160
160
|
"create.js"
|
|
161
161
|
]
|
|
162
162
|
},
|
|
163
|
-
"block:create": {
|
|
164
|
-
"aliases": [],
|
|
165
|
-
"args": {
|
|
166
|
-
"name": {
|
|
167
|
-
"description": "block name",
|
|
168
|
-
"name": "name",
|
|
169
|
-
"required": true
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"description": "Create an block.\n\nCreate a new balena block.\n\nYou can specify the organization the block should belong to using\nthe `--organization` option. The organization's handle, not its name,\nshould be provided. Organization handles can be listed with the\n`balena organization list` command.\n\nThe block's default device type is specified with the `--type` option.\nThe `balena device-type list` command can be used to list the available\ndevice types.\n\nInteractive dropdowns will be shown for selection if no device type or\norganization is specified and there are multiple options to choose from.\nIf there is a single option to choose from, it will be chosen automatically.\nThis interactive behavior can be disabled by explicitly specifying a device\ntype and organization.",
|
|
173
|
-
"examples": [
|
|
174
|
-
"$ balena block create MyBlock",
|
|
175
|
-
"$ balena block create MyBlock --organization mmyorg",
|
|
176
|
-
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
177
|
-
],
|
|
178
|
-
"flags": {
|
|
179
|
-
"organization": {
|
|
180
|
-
"char": "o",
|
|
181
|
-
"description": "handle of the organization the block should belong to",
|
|
182
|
-
"name": "organization",
|
|
183
|
-
"hasDynamicHelp": false,
|
|
184
|
-
"multiple": false,
|
|
185
|
-
"type": "option"
|
|
186
|
-
},
|
|
187
|
-
"type": {
|
|
188
|
-
"char": "t",
|
|
189
|
-
"description": "block device type (Check available types with `balena device-type list`)",
|
|
190
|
-
"name": "type",
|
|
191
|
-
"hasDynamicHelp": false,
|
|
192
|
-
"multiple": false,
|
|
193
|
-
"type": "option"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"hasDynamicHelp": false,
|
|
197
|
-
"hiddenAliases": [],
|
|
198
|
-
"id": "block:create",
|
|
199
|
-
"pluginAlias": "balena-cli",
|
|
200
|
-
"pluginName": "balena-cli",
|
|
201
|
-
"pluginType": "core",
|
|
202
|
-
"strict": true,
|
|
203
|
-
"enableJsonFlag": false,
|
|
204
|
-
"authenticated": true,
|
|
205
|
-
"isESM": false,
|
|
206
|
-
"relativePath": [
|
|
207
|
-
"build",
|
|
208
|
-
"commands",
|
|
209
|
-
"block",
|
|
210
|
-
"create.js"
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
163
|
"build": {
|
|
214
164
|
"aliases": [],
|
|
215
165
|
"args": {
|
|
@@ -756,6 +706,56 @@
|
|
|
756
706
|
"write.js"
|
|
757
707
|
]
|
|
758
708
|
},
|
|
709
|
+
"block:create": {
|
|
710
|
+
"aliases": [],
|
|
711
|
+
"args": {
|
|
712
|
+
"name": {
|
|
713
|
+
"description": "block name",
|
|
714
|
+
"name": "name",
|
|
715
|
+
"required": true
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
"description": "Create an block.\n\nCreate a new balena block.\n\nYou can specify the organization the block should belong to using\nthe `--organization` option. The organization's handle, not its name,\nshould be provided. Organization handles can be listed with the\n`balena organization list` command.\n\nThe block's default device type is specified with the `--type` option.\nThe `balena device-type list` command can be used to list the available\ndevice types.\n\nInteractive dropdowns will be shown for selection if no device type or\norganization is specified and there are multiple options to choose from.\nIf there is a single option to choose from, it will be chosen automatically.\nThis interactive behavior can be disabled by explicitly specifying a device\ntype and organization.",
|
|
719
|
+
"examples": [
|
|
720
|
+
"$ balena block create MyBlock",
|
|
721
|
+
"$ balena block create MyBlock --organization mmyorg",
|
|
722
|
+
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
723
|
+
],
|
|
724
|
+
"flags": {
|
|
725
|
+
"organization": {
|
|
726
|
+
"char": "o",
|
|
727
|
+
"description": "handle of the organization the block should belong to",
|
|
728
|
+
"name": "organization",
|
|
729
|
+
"hasDynamicHelp": false,
|
|
730
|
+
"multiple": false,
|
|
731
|
+
"type": "option"
|
|
732
|
+
},
|
|
733
|
+
"type": {
|
|
734
|
+
"char": "t",
|
|
735
|
+
"description": "block device type (Check available types with `balena device-type list`)",
|
|
736
|
+
"name": "type",
|
|
737
|
+
"hasDynamicHelp": false,
|
|
738
|
+
"multiple": false,
|
|
739
|
+
"type": "option"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"hasDynamicHelp": false,
|
|
743
|
+
"hiddenAliases": [],
|
|
744
|
+
"id": "block:create",
|
|
745
|
+
"pluginAlias": "balena-cli",
|
|
746
|
+
"pluginName": "balena-cli",
|
|
747
|
+
"pluginType": "core",
|
|
748
|
+
"strict": true,
|
|
749
|
+
"enableJsonFlag": false,
|
|
750
|
+
"authenticated": true,
|
|
751
|
+
"isESM": false,
|
|
752
|
+
"relativePath": [
|
|
753
|
+
"build",
|
|
754
|
+
"commands",
|
|
755
|
+
"block",
|
|
756
|
+
"create.js"
|
|
757
|
+
]
|
|
758
|
+
},
|
|
759
759
|
"deploy": {
|
|
760
760
|
"aliases": [],
|
|
761
761
|
"args": {
|
|
@@ -979,6 +979,45 @@
|
|
|
979
979
|
"index.js"
|
|
980
980
|
]
|
|
981
981
|
},
|
|
982
|
+
"device-type:list": {
|
|
983
|
+
"aliases": [],
|
|
984
|
+
"args": {},
|
|
985
|
+
"description": "List the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nList the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nBy default, only actively supported device types are listed.\nThe --all option can be used to list all device types, including those that are\nno longer supported by balena.",
|
|
986
|
+
"examples": [
|
|
987
|
+
"$ balena device-type list",
|
|
988
|
+
"$ balena device-type list --all"
|
|
989
|
+
],
|
|
990
|
+
"flags": {
|
|
991
|
+
"json": {
|
|
992
|
+
"description": "Format output as json.",
|
|
993
|
+
"helpGroup": "GLOBAL",
|
|
994
|
+
"name": "json",
|
|
995
|
+
"allowNo": false,
|
|
996
|
+
"type": "boolean"
|
|
997
|
+
},
|
|
998
|
+
"all": {
|
|
999
|
+
"description": "include device types no longer supported by balena",
|
|
1000
|
+
"name": "all",
|
|
1001
|
+
"allowNo": false,
|
|
1002
|
+
"type": "boolean"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
"hasDynamicHelp": false,
|
|
1006
|
+
"hiddenAliases": [],
|
|
1007
|
+
"id": "device-type:list",
|
|
1008
|
+
"pluginAlias": "balena-cli",
|
|
1009
|
+
"pluginName": "balena-cli",
|
|
1010
|
+
"pluginType": "core",
|
|
1011
|
+
"strict": true,
|
|
1012
|
+
"enableJsonFlag": true,
|
|
1013
|
+
"isESM": false,
|
|
1014
|
+
"relativePath": [
|
|
1015
|
+
"build",
|
|
1016
|
+
"commands",
|
|
1017
|
+
"device-type",
|
|
1018
|
+
"list.js"
|
|
1019
|
+
]
|
|
1020
|
+
},
|
|
982
1021
|
"device:deactivate": {
|
|
983
1022
|
"aliases": [],
|
|
984
1023
|
"args": {
|
|
@@ -2199,45 +2238,6 @@
|
|
|
2199
2238
|
"tunnel.js"
|
|
2200
2239
|
]
|
|
2201
2240
|
},
|
|
2202
|
-
"device-type:list": {
|
|
2203
|
-
"aliases": [],
|
|
2204
|
-
"args": {},
|
|
2205
|
-
"description": "List the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nList the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nBy default, only actively supported device types are listed.\nThe --all option can be used to list all device types, including those that are\nno longer supported by balena.",
|
|
2206
|
-
"examples": [
|
|
2207
|
-
"$ balena device-type list",
|
|
2208
|
-
"$ balena device-type list --all"
|
|
2209
|
-
],
|
|
2210
|
-
"flags": {
|
|
2211
|
-
"json": {
|
|
2212
|
-
"description": "Format output as json.",
|
|
2213
|
-
"helpGroup": "GLOBAL",
|
|
2214
|
-
"name": "json",
|
|
2215
|
-
"allowNo": false,
|
|
2216
|
-
"type": "boolean"
|
|
2217
|
-
},
|
|
2218
|
-
"all": {
|
|
2219
|
-
"description": "include device types no longer supported by balena",
|
|
2220
|
-
"name": "all",
|
|
2221
|
-
"allowNo": false,
|
|
2222
|
-
"type": "boolean"
|
|
2223
|
-
}
|
|
2224
|
-
},
|
|
2225
|
-
"hasDynamicHelp": false,
|
|
2226
|
-
"hiddenAliases": [],
|
|
2227
|
-
"id": "device-type:list",
|
|
2228
|
-
"pluginAlias": "balena-cli",
|
|
2229
|
-
"pluginName": "balena-cli",
|
|
2230
|
-
"pluginType": "core",
|
|
2231
|
-
"strict": true,
|
|
2232
|
-
"enableJsonFlag": true,
|
|
2233
|
-
"isESM": false,
|
|
2234
|
-
"relativePath": [
|
|
2235
|
-
"build",
|
|
2236
|
-
"commands",
|
|
2237
|
-
"device-type",
|
|
2238
|
-
"list.js"
|
|
2239
|
-
]
|
|
2240
|
-
},
|
|
2241
2241
|
"env:list": {
|
|
2242
2242
|
"aliases": [],
|
|
2243
2243
|
"args": {},
|
|
@@ -4509,53 +4509,6 @@
|
|
|
4509
4509
|
"rm.js"
|
|
4510
4510
|
]
|
|
4511
4511
|
},
|
|
4512
|
-
"util:available-drives": {
|
|
4513
|
-
"aliases": [],
|
|
4514
|
-
"args": {},
|
|
4515
|
-
"description": "List available drives.\n\nList available drives which are usable for writing an OS image to.\nDoes not list system drives.",
|
|
4516
|
-
"flags": {},
|
|
4517
|
-
"hasDynamicHelp": false,
|
|
4518
|
-
"hiddenAliases": [],
|
|
4519
|
-
"id": "util:available-drives",
|
|
4520
|
-
"pluginAlias": "balena-cli",
|
|
4521
|
-
"pluginName": "balena-cli",
|
|
4522
|
-
"pluginType": "core",
|
|
4523
|
-
"strict": true,
|
|
4524
|
-
"enableJsonFlag": false,
|
|
4525
|
-
"offlineCompatible": true,
|
|
4526
|
-
"isESM": false,
|
|
4527
|
-
"relativePath": [
|
|
4528
|
-
"build",
|
|
4529
|
-
"commands",
|
|
4530
|
-
"util",
|
|
4531
|
-
"available-drives.js"
|
|
4532
|
-
]
|
|
4533
|
-
},
|
|
4534
|
-
"whoami": {
|
|
4535
|
-
"aliases": [],
|
|
4536
|
-
"args": {},
|
|
4537
|
-
"description": "Display account information for current user.\n\nGet the username and email address of the currently logged in user.",
|
|
4538
|
-
"examples": [
|
|
4539
|
-
"$ balena whoami"
|
|
4540
|
-
],
|
|
4541
|
-
"flags": {},
|
|
4542
|
-
"hasDynamicHelp": false,
|
|
4543
|
-
"hiddenAliases": [],
|
|
4544
|
-
"id": "whoami",
|
|
4545
|
-
"pluginAlias": "balena-cli",
|
|
4546
|
-
"pluginName": "balena-cli",
|
|
4547
|
-
"pluginType": "core",
|
|
4548
|
-
"strict": true,
|
|
4549
|
-
"enableJsonFlag": false,
|
|
4550
|
-
"authenticated": true,
|
|
4551
|
-
"isESM": false,
|
|
4552
|
-
"relativePath": [
|
|
4553
|
-
"build",
|
|
4554
|
-
"commands",
|
|
4555
|
-
"whoami",
|
|
4556
|
-
"index.js"
|
|
4557
|
-
]
|
|
4558
|
-
},
|
|
4559
4512
|
"tag:list": {
|
|
4560
4513
|
"aliases": [],
|
|
4561
4514
|
"args": {},
|
|
@@ -4775,6 +4728,53 @@
|
|
|
4775
4728
|
"tag",
|
|
4776
4729
|
"set.js"
|
|
4777
4730
|
]
|
|
4731
|
+
},
|
|
4732
|
+
"util:available-drives": {
|
|
4733
|
+
"aliases": [],
|
|
4734
|
+
"args": {},
|
|
4735
|
+
"description": "List available drives.\n\nList available drives which are usable for writing an OS image to.\nDoes not list system drives.",
|
|
4736
|
+
"flags": {},
|
|
4737
|
+
"hasDynamicHelp": false,
|
|
4738
|
+
"hiddenAliases": [],
|
|
4739
|
+
"id": "util:available-drives",
|
|
4740
|
+
"pluginAlias": "balena-cli",
|
|
4741
|
+
"pluginName": "balena-cli",
|
|
4742
|
+
"pluginType": "core",
|
|
4743
|
+
"strict": true,
|
|
4744
|
+
"enableJsonFlag": false,
|
|
4745
|
+
"offlineCompatible": true,
|
|
4746
|
+
"isESM": false,
|
|
4747
|
+
"relativePath": [
|
|
4748
|
+
"build",
|
|
4749
|
+
"commands",
|
|
4750
|
+
"util",
|
|
4751
|
+
"available-drives.js"
|
|
4752
|
+
]
|
|
4753
|
+
},
|
|
4754
|
+
"whoami": {
|
|
4755
|
+
"aliases": [],
|
|
4756
|
+
"args": {},
|
|
4757
|
+
"description": "Display account information for current user.\n\nGet the username and email address of the currently logged in user.",
|
|
4758
|
+
"examples": [
|
|
4759
|
+
"$ balena whoami"
|
|
4760
|
+
],
|
|
4761
|
+
"flags": {},
|
|
4762
|
+
"hasDynamicHelp": false,
|
|
4763
|
+
"hiddenAliases": [],
|
|
4764
|
+
"id": "whoami",
|
|
4765
|
+
"pluginAlias": "balena-cli",
|
|
4766
|
+
"pluginName": "balena-cli",
|
|
4767
|
+
"pluginType": "core",
|
|
4768
|
+
"strict": true,
|
|
4769
|
+
"enableJsonFlag": false,
|
|
4770
|
+
"authenticated": true,
|
|
4771
|
+
"isESM": false,
|
|
4772
|
+
"relativePath": [
|
|
4773
|
+
"build",
|
|
4774
|
+
"commands",
|
|
4775
|
+
"whoami",
|
|
4776
|
+
"index.js"
|
|
4777
|
+
]
|
|
4778
4778
|
}
|
|
4779
4779
|
},
|
|
4780
4780
|
"version": "23.1.4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "23.1.4-build-
|
|
3
|
+
"version": "23.1.4-build-remove-help-patch-91cf9f3515ee54c5cc2a2ea305a31fa2a66003ab-3",
|
|
4
4
|
"description": "The official balena Command Line Interface",
|
|
5
5
|
"main": "./build/app.js",
|
|
6
6
|
"homepage": "https://github.com/balena-io/balena-cli",
|
|
@@ -262,6 +262,6 @@
|
|
|
262
262
|
"balena-request": "14.0.6"
|
|
263
263
|
},
|
|
264
264
|
"versionist": {
|
|
265
|
-
"publishedAt": "2025-11-
|
|
265
|
+
"publishedAt": "2025-11-19T21:41:17.609Z"
|
|
266
266
|
}
|
|
267
267
|
}
|
package/src/app.ts
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from './preparser';
|
|
25
25
|
import { CliSettings } from './utils/bootstrap';
|
|
26
26
|
import { onceAsync } from './utils/lazy';
|
|
27
|
-
import { run as mainRun, settings } from '@oclif/core';
|
|
27
|
+
import { run as mainRun, settings, Errors } from '@oclif/core';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Sentry.io setup
|
|
@@ -126,6 +126,34 @@ async function oclifRun(command: string[], options: AppOptions) {
|
|
|
126
126
|
if (error.oclif?.exit === 0) {
|
|
127
127
|
isEEXIT = true;
|
|
128
128
|
} else {
|
|
129
|
+
if (error instanceof Errors.CLIError) {
|
|
130
|
+
const RequiredArgsErrorRegex = /^Missing (\d+) required arg(s?\b)/;
|
|
131
|
+
if (RequiredArgsErrorRegex.exec(error.message) != null) {
|
|
132
|
+
error.message = error.message
|
|
133
|
+
.split('\n')
|
|
134
|
+
.map((line, i) => {
|
|
135
|
+
if (i === 0) {
|
|
136
|
+
// Replace 'arg(s)' with 'argument(s)'
|
|
137
|
+
return line.replace(
|
|
138
|
+
RequiredArgsErrorRegex,
|
|
139
|
+
'Missing $1 required argument$2',
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
// Add a ':' between the missing argument name and its description
|
|
143
|
+
return line.replace(
|
|
144
|
+
/^(?<argName>[\w-]+)(?<paddingSpaces>[ ]+)[ ](?<description>\w)/,
|
|
145
|
+
'$<argName>$<paddingSpaces>: $<description>',
|
|
146
|
+
);
|
|
147
|
+
})
|
|
148
|
+
.join('\n');
|
|
149
|
+
// Print the whole command used along with '--help'
|
|
150
|
+
const helpCommand = `balena ${command.map((c, i) => (i === 0 ? c.replace(/:/g, ' ') : c)).join(' ')} --help`;
|
|
151
|
+
error.message = error.message.replace(
|
|
152
|
+
'\nSee more help with --help',
|
|
153
|
+
`\nSee more help with \`${helpCommand}\``,
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
129
157
|
throw error;
|
|
130
158
|
}
|
|
131
159
|
}
|
package/src/help.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import type { Command } from '@oclif/core';
|
|
17
|
+
import type { Command, Interfaces } from '@oclif/core';
|
|
18
18
|
import { Help } from '@oclif/core';
|
|
19
19
|
import * as indent from 'indent-string';
|
|
20
20
|
import type { ResolvableReturnType } from 'balena-sdk/typings/utils';
|
|
@@ -38,7 +38,49 @@ function getHelpSubject(args: string[]): string | undefined {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
// See: https://github.com/oclif/core/blob/v1.16.4/src/help/index.ts#L45
|
|
41
42
|
export default class BalenaHelp extends Help {
|
|
43
|
+
private SUPPRESS_SUBTOPICS_DEPTH: number | null = null;
|
|
44
|
+
|
|
45
|
+
protected get sortedCommands(): Command.Loadable[] {
|
|
46
|
+
const commands = super.sortedCommands;
|
|
47
|
+
if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
|
|
48
|
+
return commands;
|
|
49
|
+
}
|
|
50
|
+
// Assign it to a const so that TS knows that this can't change to null during the .filter
|
|
51
|
+
const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
|
|
52
|
+
// This is excluding all commands with a depth higher than the SUPPRESS_SUBTOPICS_DEPTH
|
|
53
|
+
// so that when the base `showCommandHelp` is called and it accesses this.sortedCommands
|
|
54
|
+
// it will not find any sub-commands and hence will not print them.
|
|
55
|
+
// https://github.com/oclif/core/blob/v1.16.4/src/help/index.ts#L137-L138
|
|
56
|
+
// eg: when doing `balena device --help`, which has a depth of 1, this will omit commands
|
|
57
|
+
// like 'device:deactivate', 'device:init' etc since they have depth of 2.
|
|
58
|
+
return commands.filter((c) => c.id.split(':').length <= depth);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
protected get sortedTopics(): Interfaces.Topic[] {
|
|
62
|
+
const topics = super.sortedTopics;
|
|
63
|
+
if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
|
|
64
|
+
return topics;
|
|
65
|
+
}
|
|
66
|
+
// Assign it to a const so that TS knows that this can't change to null during the .filter
|
|
67
|
+
const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
|
|
68
|
+
// This is excluding all topics with a depth higher than the SUPPRESS_SUBTOPICS_DEPTH
|
|
69
|
+
// so that when the base `showCommandHelp` is called and it accesses this.sortedTopics
|
|
70
|
+
// it will not find any sub-topics and hence will not print them.
|
|
71
|
+
// https://github.com/oclif/core/blob/v1.16.4/src/help/index.ts#L137-L138
|
|
72
|
+
// We atm do not have any-sub-topic to give an example for
|
|
73
|
+
return topics.filter((t) => t.name.split(':').length <= depth);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public async showCommandHelp(command: Command.Loadable): Promise<void> {
|
|
77
|
+
const name = command.id;
|
|
78
|
+
const depth = name.split(':').length;
|
|
79
|
+
this.SUPPRESS_SUBTOPICS_DEPTH = depth;
|
|
80
|
+
await super.showCommandHelp(command);
|
|
81
|
+
this.SUPPRESS_SUBTOPICS_DEPTH = null;
|
|
82
|
+
}
|
|
83
|
+
|
|
42
84
|
public async showHelp(argv: string[]) {
|
|
43
85
|
const ux = getCliUx();
|
|
44
86
|
const subject = getHelpSubject(argv);
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/@oclif/core/lib/help/index.js b/node_modules/@oclif/core/lib/help/index.js
|
|
2
|
-
index 5846c71..d47d146 100644
|
|
3
|
-
--- a/node_modules/@oclif/core/lib/help/index.js
|
|
4
|
-
+++ b/node_modules/@oclif/core/lib/help/index.js
|
|
5
|
-
@@ -186,11 +186,12 @@ class Help extends HelpBase {
|
|
6
|
-
}
|
|
7
|
-
this.log(this.formatCommand(command));
|
|
8
|
-
this.log('');
|
|
9
|
-
- if (subTopics.length > 0) {
|
|
10
|
-
+ const SUPPRESS_SUBTOPICS = true;
|
|
11
|
-
+ if (subTopics.length > 0 && !SUPPRESS_SUBTOPICS) {
|
|
12
|
-
this.log(this.formatTopics(subTopics));
|
|
13
|
-
this.log('');
|
|
14
|
-
}
|
|
15
|
-
- if (subCommands.length > 0) {
|
|
16
|
-
+ if (subCommands.length > 0 && !SUPPRESS_SUBTOPICS) {
|
|
17
|
-
const aliases = [];
|
|
18
|
-
const uniqueSubCommands = subCommands.filter((p) => {
|
|
19
|
-
aliases.push(...p.aliases);
|
|
20
|
-
diff --git a/node_modules/@oclif/core/lib/parser/errors.js b/node_modules/@oclif/core/lib/parser/errors.js
|
|
21
|
-
index 168da99..538a880 100644
|
|
22
|
-
--- a/node_modules/@oclif/core/lib/parser/errors.js
|
|
23
|
-
+++ b/node_modules/@oclif/core/lib/parser/errors.js
|
|
24
|
-
@@ -15,7 +15,8 @@ class CLIParseError extends errors_1.CLIError {
|
|
25
|
-
parse;
|
|
26
|
-
showHelp = false;
|
|
27
|
-
constructor(options) {
|
|
28
|
-
- options.message += '\nSee more help with --help';
|
|
29
|
-
+ const help = options.command ? `\`${options.command} --help\`` : '--help';
|
|
30
|
-
+ options.message += `\nSee more help with ${help}`;
|
|
31
|
-
super(options.message, { exit: options.exit });
|
|
32
|
-
this.parse = options.parse;
|
|
33
|
-
}
|
|
34
|
-
@@ -38,7 +39,8 @@ exports.InvalidArgsSpecError = InvalidArgsSpecError;
|
|
35
|
-
class RequiredArgsError extends CLIParseError {
|
|
36
|
-
args;
|
|
37
|
-
constructor({ args, exit, flagsWithMultiple, parse, }) {
|
|
38
|
-
- let message = `Missing ${args.length} required arg${args.length === 1 ? '' : 's'}`;
|
|
39
|
-
+ const command = 'balena ' + parse.input.context.id.replace(/:/g, ' ');
|
|
40
|
-
+ let message = `Missing ${args.length} required argument${args.length === 1 ? '' : 's'}`;
|
|
41
|
-
const namedArgs = args.filter((a) => a.name);
|
|
42
|
-
if (namedArgs.length > 0) {
|
|
43
|
-
const list = (0, list_1.default)(namedArgs.map((a) => {
|
|
44
|
-
@@ -52,7 +54,7 @@ class RequiredArgsError extends CLIParseError {
|
|
45
|
-
message += `\n\nNote: ${flags} allow${flagsWithMultiple.length === 1 ? 's' : ''} multiple values. Because of this you need to provide all arguments before providing ${flagsWithMultiple.length === 1 ? 'that flag' : 'those flags'}.`;
|
|
46
|
-
message += '\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.';
|
|
47
|
-
}
|
|
48
|
-
- super({ exit: cache_1.default.getInstance().get('exitCodes')?.requiredArgs ?? exit, message, parse });
|
|
49
|
-
+ super({ exit: cache_1.default.getInstance().get('exitCodes')?.requiredArgs ?? exit, message, parse, command });
|
|
50
|
-
this.args = args;
|
|
51
|
-
this.showHelp = true;
|
|
52
|
-
}
|
|
53
|
-
diff --git a/node_modules/@oclif/core/lib/ux/list.js b/node_modules/@oclif/core/lib/ux/list.js
|
|
54
|
-
index ebafa29..55c88e5 100644
|
|
55
|
-
--- a/node_modules/@oclif/core/lib/ux/list.js
|
|
56
|
-
+++ b/node_modules/@oclif/core/lib/ux/list.js
|
|
57
|
-
@@ -22,7 +22,7 @@ function renderList(items) {
|
|
58
|
-
}
|
|
59
|
-
left = left.padEnd(maxLength);
|
|
60
|
-
right = linewrap(maxLength + 2, right);
|
|
61
|
-
- return `${left} ${right}`;
|
|
62
|
-
+ return `${left} : ${right}`;
|
|
63
|
-
});
|
|
64
|
-
return lines.join('\n');
|
|
65
|
-
}
|