balena-cli 17.4.2 → 17.4.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 +4 -0
- package/bin/balena +1 -1
- package/bin/balena-dev +1 -1
- package/build/app.d.ts +1 -1
- package/build/app.js +8 -4
- package/build/app.js.map +1 -1
- package/build/commands/api-key/generate.d.ts +1 -1
- package/build/commands/api-key/revoke.d.ts +1 -1
- package/build/commands/api-keys/index.d.ts +1 -1
- package/build/commands/app/create.d.ts +3 -3
- package/build/commands/block/create.d.ts +3 -3
- package/build/commands/build/index.d.ts +16 -16
- package/build/commands/config/generate.d.ts +24 -72
- package/build/commands/config/inject.d.ts +2 -2
- package/build/commands/config/read.d.ts +1 -1
- package/build/commands/config/reconfigure.d.ts +2 -2
- package/build/commands/config/write.d.ts +3 -3
- package/build/commands/deploy/index.d.ts +17 -17
- package/build/commands/device/deactivate.d.ts +1 -1
- package/build/commands/device/identify.d.ts +1 -1
- package/build/commands/device/index.d.ts +1 -1
- package/build/commands/device/init.d.ts +6 -6
- package/build/commands/device/local-mode.d.ts +1 -1
- package/build/commands/device/move.d.ts +2 -2
- package/build/commands/device/os-update.d.ts +2 -2
- package/build/commands/device/pin.d.ts +2 -2
- package/build/commands/device/public-url.d.ts +1 -1
- package/build/commands/device/purge.d.ts +1 -1
- package/build/commands/device/reboot.d.ts +1 -1
- package/build/commands/device/register.d.ts +3 -3
- package/build/commands/device/rename.d.ts +2 -2
- package/build/commands/device/restart.d.ts +2 -2
- package/build/commands/device/rm.d.ts +1 -1
- package/build/commands/device/shutdown.d.ts +1 -1
- package/build/commands/device/start-service.d.ts +2 -2
- package/build/commands/device/stop-service.d.ts +2 -2
- package/build/commands/device/track-fleet.d.ts +1 -1
- package/build/commands/devices/index.d.ts +1 -1
- package/build/commands/env/add.d.ts +17 -65
- package/build/commands/env/rename.d.ts +3 -3
- package/build/commands/env/rm.d.ts +2 -2
- package/build/commands/envs/index.d.ts +21 -93
- package/build/commands/fleet/create.d.ts +3 -3
- package/build/commands/fleet/index.d.ts +2 -2
- package/build/commands/fleet/pin.d.ts +2 -2
- package/build/commands/fleet/purge.d.ts +1 -1
- package/build/commands/fleet/rename.d.ts +2 -2
- package/build/commands/fleet/restart.d.ts +1 -1
- package/build/commands/fleet/rm.d.ts +1 -1
- package/build/commands/fleet/track-latest.d.ts +1 -1
- package/build/commands/fleets/index.d.ts +3 -3
- package/build/commands/internal/osinit.d.ts +3 -3
- package/build/commands/join/index.d.ts +3 -3
- package/build/commands/key/add.d.ts +2 -2
- package/build/commands/key/index.d.ts +2 -2
- package/build/commands/key/rm.d.ts +2 -2
- package/build/commands/leave/index.d.ts +1 -1
- package/build/commands/local/configure.d.ts +1 -1
- package/build/commands/local/flash.d.ts +2 -2
- package/build/commands/login/index.d.ts +5 -5
- package/build/commands/logs/index.d.ts +3 -3
- package/build/commands/notes/index.d.ts +9 -33
- package/build/commands/os/build-config.d.ts +3 -3
- package/build/commands/os/configure.d.ts +26 -74
- package/build/commands/os/download.d.ts +3 -3
- package/build/commands/os/initialize.d.ts +3 -3
- package/build/commands/os/versions.d.ts +1 -1
- package/build/commands/preload/index.d.ts +12 -12
- package/build/commands/push/index.d.ts +8 -8
- package/build/commands/release/finalize.d.ts +1 -1
- package/build/commands/release/index.d.ts +1 -1
- package/build/commands/release/invalidate.d.ts +1 -1
- package/build/commands/release/validate.d.ts +1 -1
- package/build/commands/releases/index.d.ts +1 -1
- package/build/commands/scan/index.d.ts +1 -1
- package/build/commands/ssh/index.d.ts +3 -3
- package/build/commands/support/index.d.ts +10 -34
- package/build/commands/tag/rm.d.ts +22 -94
- package/build/commands/tag/set.d.ts +23 -95
- package/build/commands/tags/index.d.ts +21 -93
- package/build/commands/tunnel/index.d.ts +2 -2
- package/build/help.js +1 -1
- package/build/help.js.map +1 -1
- package/build/preparser.d.ts +4 -1
- package/build/preparser.js.map +1 -1
- package/build/utils/common-args.d.ts +1 -1
- package/build/utils/common-flags.d.ts +11 -11
- package/build/utils/compose_ts.d.ts +3 -3
- package/build/utils/docker.d.ts +15 -15
- package/lib/app.ts +10 -3
- package/lib/help.ts +1 -1
- package/lib/preparser.ts +5 -1
- package/npm-shrinkwrap.json +1043 -42
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
- package/patches/all/{@oclif+core+2.15.0.patch → @oclif+core+3.11.0.patch} +26 -25
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "17.4.
|
|
3
|
+
"version": "17.4.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",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"@balena/compose": "^3.0.5",
|
|
197
197
|
"@balena/dockerignore": "^1.0.2",
|
|
198
198
|
"@balena/es-version": "^1.0.1",
|
|
199
|
-
"@oclif/core": "^
|
|
199
|
+
"@oclif/core": "^3.11.0",
|
|
200
200
|
"@resin.io/valid-email": "^0.1.0",
|
|
201
201
|
"@sentry/node": "^6.16.1",
|
|
202
202
|
"@types/fast-levenshtein": "0.0.1",
|
|
@@ -282,6 +282,6 @@
|
|
|
282
282
|
"windosu": "^0.3.0"
|
|
283
283
|
},
|
|
284
284
|
"versionist": {
|
|
285
|
-
"publishedAt": "2023-11-
|
|
285
|
+
"publishedAt": "2023-11-16T18:12:35.004Z"
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/node_modules/@oclif/core/lib/cli-ux/list.js b/node_modules/@oclif/core/lib/cli-ux/list.js
|
|
2
|
-
index
|
|
2
|
+
index 607d8dc..07ba1f2 100644
|
|
3
3
|
--- a/node_modules/@oclif/core/lib/cli-ux/list.js
|
|
4
4
|
+++ b/node_modules/@oclif/core/lib/cli-ux/list.js
|
|
5
5
|
@@ -22,7 +22,7 @@ function renderList(items) {
|
|
@@ -12,20 +12,20 @@ index dc6058c..64b2f85 100644
|
|
|
12
12
|
return lines.join('\n');
|
|
13
13
|
}
|
|
14
14
|
diff --git a/node_modules/@oclif/core/lib/help/command.js b/node_modules/@oclif/core/lib/help/command.js
|
|
15
|
-
index
|
|
15
|
+
index c528e93..2c20760 100644
|
|
16
16
|
--- a/node_modules/@oclif/core/lib/help/command.js
|
|
17
17
|
+++ b/node_modules/@oclif/core/lib/help/command.js
|
|
18
|
-
@@ -
|
|
19
|
-
if (args.filter(a => a.description).length === 0)
|
|
18
|
+
@@ -45,7 +45,7 @@ class CommandHelp extends formatter_1.HelpFormatter {
|
|
19
|
+
if (args.filter((a) => a.description).length === 0)
|
|
20
20
|
return;
|
|
21
|
-
return args.map(a => {
|
|
21
|
+
return args.map((a) => {
|
|
22
22
|
- const name = a.name.toUpperCase();
|
|
23
23
|
+ const name = a.required ? `<${a.name}>` : `[${a.name}]`;
|
|
24
24
|
let description = a.description || '';
|
|
25
25
|
if (a.default)
|
|
26
26
|
description = `[default: ${a.default}] ${description}`;
|
|
27
|
-
@@ -
|
|
28
|
-
label = labels.join(', ');
|
|
27
|
+
@@ -137,14 +137,12 @@ class CommandHelp extends formatter_1.HelpFormatter {
|
|
28
|
+
label = labels.join(flag.char ? ', ' : ' ');
|
|
29
29
|
}
|
|
30
30
|
if (flag.type === 'option') {
|
|
31
31
|
- let value = flag.helpValue || (this.opts.showFlagNameInTitle ? flag.name : '<value>');
|
|
@@ -36,16 +36,16 @@ index 6de139b..3a13197 100644
|
|
|
36
36
|
if (flag.multiple)
|
|
37
37
|
- value += '...';
|
|
38
38
|
- if (!value.includes('|'))
|
|
39
|
-
- value = underline(value);
|
|
39
|
+
- value = chalk_1.default.underline(value);
|
|
40
40
|
+ value += ' ...';
|
|
41
41
|
label += `=${value}`;
|
|
42
42
|
}
|
|
43
43
|
return label;
|
|
44
44
|
diff --git a/node_modules/@oclif/core/lib/help/index.js b/node_modules/@oclif/core/lib/help/index.js
|
|
45
|
-
index
|
|
45
|
+
index 38494f5..213b8b0 100644
|
|
46
46
|
--- a/node_modules/@oclif/core/lib/help/index.js
|
|
47
47
|
+++ b/node_modules/@oclif/core/lib/help/index.js
|
|
48
|
-
@@ -
|
|
48
|
+
@@ -158,11 +158,12 @@ class Help extends HelpBase {
|
|
49
49
|
}
|
|
50
50
|
this.log(this.formatCommand(command));
|
|
51
51
|
this.log('');
|
|
@@ -58,15 +58,15 @@ index f9ef7cc..a14c67c 100644
|
|
|
58
58
|
- if (subCommands.length > 0) {
|
|
59
59
|
+ if (subCommands.length > 0 && !SUPPRESS_SUBTOPICS) {
|
|
60
60
|
const aliases = [];
|
|
61
|
-
const uniqueSubCommands = subCommands.filter(p => {
|
|
61
|
+
const uniqueSubCommands = subCommands.filter((p) => {
|
|
62
62
|
aliases.push(...p.aliases);
|
|
63
63
|
diff --git a/node_modules/@oclif/core/lib/parser/errors.js b/node_modules/@oclif/core/lib/parser/errors.js
|
|
64
|
-
index
|
|
64
|
+
index 51be624..768d589 100644
|
|
65
65
|
--- a/node_modules/@oclif/core/lib/parser/errors.js
|
|
66
66
|
+++ b/node_modules/@oclif/core/lib/parser/errors.js
|
|
67
|
-
@@ -
|
|
68
|
-
Object.defineProperty(exports, "CLIError", { enumerable: true, get: function () { return errors_2.CLIError; } });
|
|
67
|
+
@@ -14,7 +14,8 @@ Object.defineProperty(exports, "CLIError", { enumerable: true, get: function ()
|
|
69
68
|
class CLIParseError extends errors_1.CLIError {
|
|
69
|
+
parse;
|
|
70
70
|
constructor(options) {
|
|
71
71
|
- options.message += '\nSee more help with --help';
|
|
72
72
|
+ const help = options.command ? `\`${options.command} --help\`` : '--help';
|
|
@@ -74,33 +74,34 @@ index 07ec8e5..a4560ea 100644
|
|
|
74
74
|
super(options.message);
|
|
75
75
|
this.parse = options.parse;
|
|
76
76
|
}
|
|
77
|
-
@@ -
|
|
78
|
-
exports.InvalidArgsSpecError = InvalidArgsSpecError;
|
|
77
|
+
@@ -37,7 +38,8 @@ exports.InvalidArgsSpecError = InvalidArgsSpecError;
|
|
79
78
|
class RequiredArgsError extends CLIParseError {
|
|
80
|
-
|
|
79
|
+
args;
|
|
80
|
+
constructor({ args, flagsWithMultiple, parse, }) {
|
|
81
81
|
- let message = `Missing ${args.length} required arg${args.length === 1 ? '' : 's'}`;
|
|
82
82
|
+ const command = 'balena ' + parse.input.context.id.replace(/:/g, ' ');
|
|
83
83
|
+ let message = `Missing ${args.length} required argument${args.length === 1 ? '' : 's'}`;
|
|
84
|
-
const namedArgs = args.filter(a => a.name);
|
|
84
|
+
const namedArgs = args.filter((a) => a.name);
|
|
85
85
|
if (namedArgs.length > 0) {
|
|
86
|
-
const list = (0, list_1.renderList)(namedArgs.map(a => [a.name, a.description]));
|
|
87
|
-
@@ -
|
|
86
|
+
const list = (0, list_1.renderList)(namedArgs.map((a) => [a.name, a.description]));
|
|
87
|
+
@@ -48,7 +50,7 @@ class RequiredArgsError extends CLIParseError {
|
|
88
88
|
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'}.`;
|
|
89
89
|
message += '\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.';
|
|
90
90
|
}
|
|
91
|
-
- super({
|
|
92
|
-
+ super({
|
|
91
|
+
- super({ message, parse });
|
|
92
|
+
+ super({ message, parse, command });
|
|
93
93
|
this.args = args;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
exports.RequiredArgsError = RequiredArgsError;
|
|
96
|
+
@@ -56,9 +58,10 @@ exports.RequiredArgsError = RequiredArgsError;
|
|
97
97
|
class RequiredFlagError extends CLIParseError {
|
|
98
|
+
flag;
|
|
98
99
|
constructor({ flag, parse }) {
|
|
99
100
|
+ const command = 'balena ' + parse.input.context.id.replace(/:/g, ' ');
|
|
100
101
|
const usage = (0, list_1.renderList)((0, help_1.flagUsages)([flag], { displayRequired: false }));
|
|
101
102
|
const message = `Missing required flag:\n${usage}`;
|
|
102
|
-
- super({
|
|
103
|
-
+ super({
|
|
103
|
+
- super({ message, parse });
|
|
104
|
+
+ super({ message, parse, command });
|
|
104
105
|
this.flag = flag;
|
|
105
106
|
}
|
|
106
107
|
}
|