mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
Update dependencies
Change-type: patch
This commit is contained in:
parent
eb9db6f7b4
commit
756f6b328b
1273
npm-shrinkwrap.json
generated
1273
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
@ -102,6 +102,7 @@
|
|||||||
"bin": "balena",
|
"bin": "balena",
|
||||||
"commands": "./build/commands",
|
"commands": "./build/commands",
|
||||||
"helpClass": "./build/help",
|
"helpClass": "./build/help",
|
||||||
|
"topicSeparator": " ",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"prerun": "./build/hooks/prerun/track",
|
"prerun": "./build/hooks/prerun/track",
|
||||||
"command_not_found": "./build/hooks/command-not-found/suggest"
|
"command_not_found": "./build/hooks/command-not-found/suggest"
|
||||||
@ -199,7 +200,7 @@
|
|||||||
"@balena/dockerignore": "^1.0.2",
|
"@balena/dockerignore": "^1.0.2",
|
||||||
"@balena/env-parsing": "^1.1.8",
|
"@balena/env-parsing": "^1.1.8",
|
||||||
"@balena/es-version": "^1.0.1",
|
"@balena/es-version": "^1.0.1",
|
||||||
"@oclif/core": "^3.14.1",
|
"@oclif/core": "^3.24.0",
|
||||||
"@resin.io/valid-email": "^0.1.0",
|
"@resin.io/valid-email": "^0.1.0",
|
||||||
"@sentry/node": "^6.16.1",
|
"@sentry/node": "^6.16.1",
|
||||||
"@types/fast-levenshtein": "0.0.1",
|
"@types/fast-levenshtein": "0.0.1",
|
||||||
|
@ -12,19 +12,21 @@ index 607d8dc..07ba1f2 100644
|
|||||||
return lines.join('\n');
|
return lines.join('\n');
|
||||||
}
|
}
|
||||||
diff --git a/node_modules/@oclif/core/lib/help/command.js b/node_modules/@oclif/core/lib/help/command.js
|
diff --git a/node_modules/@oclif/core/lib/help/command.js b/node_modules/@oclif/core/lib/help/command.js
|
||||||
index 63c0545..7caad4a 100644
|
index 6640bf9..22dac8a 100644
|
||||||
--- a/node_modules/@oclif/core/lib/help/command.js
|
--- a/node_modules/@oclif/core/lib/help/command.js
|
||||||
+++ b/node_modules/@oclif/core/lib/help/command.js
|
+++ b/node_modules/@oclif/core/lib/help/command.js
|
||||||
@@ -58,7 +58,7 @@ class CommandHelp extends formatter_1.HelpFormatter {
|
@@ -59,7 +59,9 @@ class CommandHelp extends formatter_1.HelpFormatter {
|
||||||
if (args.filter((a) => a.description).length === 0)
|
|
||||||
return;
|
return;
|
||||||
return args.map((a) => {
|
return args.map((a) => {
|
||||||
- const name = a.name.toUpperCase();
|
// Add ellipsis to indicate that the argument takes multiple values if strict is false
|
||||||
+ const name = a.required ? `<${a.name}>` : `[${a.name}]`;
|
- const name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
|
||||||
|
+ let name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
|
||||||
|
+ name = a.required ? `<${name}>` : `[${name}]`;
|
||||||
|
+
|
||||||
let description = a.description || '';
|
let description = a.description || '';
|
||||||
if (a.default)
|
if (a.default)
|
||||||
description = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${a.default}]`)} ${description}`;
|
description = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${a.default}]`)} ${description}`;
|
||||||
@@ -153,14 +153,12 @@ class CommandHelp extends formatter_1.HelpFormatter {
|
@@ -154,14 +156,12 @@ class CommandHelp extends formatter_1.HelpFormatter {
|
||||||
label = labels.join(flag.char ? (0, theme_1.colorize)(this.config?.theme?.flagSeparator, ', ') : ' ');
|
label = labels.join(flag.char ? (0, theme_1.colorize)(this.config?.theme?.flagSeparator, ', ') : ' ');
|
||||||
}
|
}
|
||||||
if (flag.type === 'option') {
|
if (flag.type === 'option') {
|
||||||
@ -42,10 +44,10 @@ index 63c0545..7caad4a 100644
|
|||||||
}
|
}
|
||||||
return (0, theme_1.colorize)(this.config.theme?.flag, label);
|
return (0, theme_1.colorize)(this.config.theme?.flag, label);
|
||||||
diff --git a/node_modules/@oclif/core/lib/help/index.js b/node_modules/@oclif/core/lib/help/index.js
|
diff --git a/node_modules/@oclif/core/lib/help/index.js b/node_modules/@oclif/core/lib/help/index.js
|
||||||
index 242538a..efde8ac 100644
|
index 2aedfd3..f3d28a6 100644
|
||||||
--- a/node_modules/@oclif/core/lib/help/index.js
|
--- a/node_modules/@oclif/core/lib/help/index.js
|
||||||
+++ b/node_modules/@oclif/core/lib/help/index.js
|
+++ b/node_modules/@oclif/core/lib/help/index.js
|
||||||
@@ -168,11 +168,12 @@ class Help extends HelpBase {
|
@@ -169,11 +169,12 @@ class Help extends HelpBase {
|
||||||
}
|
}
|
||||||
this.log(this.formatCommand(command));
|
this.log(this.formatCommand(command));
|
||||||
this.log('');
|
this.log('');
|
||||||
@ -56,12 +58,12 @@ index 242538a..efde8ac 100644
|
|||||||
this.log('');
|
this.log('');
|
||||||
}
|
}
|
||||||
- if (subCommands.length > 0) {
|
- if (subCommands.length > 0) {
|
||||||
+ if (subTopics.length > 0 && !SUPPRESS_SUBTOPICS) {
|
+ if (subCommands.length > 0 && !SUPPRESS_SUBTOPICS) {
|
||||||
const aliases = [];
|
const aliases = [];
|
||||||
const uniqueSubCommands = subCommands.filter((p) => {
|
const uniqueSubCommands = subCommands.filter((p) => {
|
||||||
aliases.push(...p.aliases);
|
aliases.push(...p.aliases);
|
||||||
diff --git a/node_modules/@oclif/core/lib/parser/errors.js b/node_modules/@oclif/core/lib/parser/errors.js
|
diff --git a/node_modules/@oclif/core/lib/parser/errors.js b/node_modules/@oclif/core/lib/parser/errors.js
|
||||||
index 656ec6b..2bbf36b 100644
|
index 656ec6b..cde9e38 100644
|
||||||
--- a/node_modules/@oclif/core/lib/parser/errors.js
|
--- a/node_modules/@oclif/core/lib/parser/errors.js
|
||||||
+++ b/node_modules/@oclif/core/lib/parser/errors.js
|
+++ b/node_modules/@oclif/core/lib/parser/errors.js
|
||||||
@@ -14,7 +14,8 @@ Object.defineProperty(exports, "CLIError", { enumerable: true, get: function ()
|
@@ -14,7 +14,8 @@ Object.defineProperty(exports, "CLIError", { enumerable: true, get: function ()
|
||||||
@ -74,22 +76,24 @@ index 656ec6b..2bbf36b 100644
|
|||||||
super(options.message, { exit: options.exit });
|
super(options.message, { exit: options.exit });
|
||||||
this.parse = options.parse;
|
this.parse = options.parse;
|
||||||
}
|
}
|
||||||
@@ -37,7 +38,8 @@ exports.InvalidArgsSpecError = InvalidArgsSpecError;
|
@@ -37,7 +38,9 @@ exports.InvalidArgsSpecError = InvalidArgsSpecError;
|
||||||
class RequiredArgsError extends CLIParseError {
|
class RequiredArgsError extends CLIParseError {
|
||||||
args;
|
args;
|
||||||
constructor({ args, exit, flagsWithMultiple, parse, }) {
|
constructor({ args, exit, flagsWithMultiple, parse, }) {
|
||||||
- let message = `Missing ${args.length} required arg${args.length === 1 ? '' : 's'}`;
|
- let message = `Missing ${args.length} required arg${args.length === 1 ? '' : 's'}`;
|
||||||
+ const command = 'balena ' + parse.input.context.id.replace(/:/g, ' ');
|
+ const command = 'balena ' + parse.input.context.id.replace(/:/g, ' ');
|
||||||
+ let message = `Missing ${args.length} required argument${args.length === 1 ? '' : 's'}`;
|
+ let message = `Missing ${args.length} required argument${args.length === 1 ? '' : 's'}`;
|
||||||
|
+
|
||||||
const namedArgs = args.filter((a) => a.name);
|
const namedArgs = args.filter((a) => a.name);
|
||||||
if (namedArgs.length > 0) {
|
if (namedArgs.length > 0) {
|
||||||
const list = (0, list_1.renderList)(namedArgs.map((a) => [a.name, a.description]));
|
const list = (0, list_1.renderList)(namedArgs.map((a) => [a.name, a.description]));
|
||||||
@@ -48,7 +50,7 @@ class RequiredArgsError extends CLIParseError {
|
@@ -48,8 +51,7 @@ class RequiredArgsError extends CLIParseError {
|
||||||
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'}.`;
|
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'}.`;
|
||||||
message += '\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.';
|
message += '\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.';
|
||||||
}
|
}
|
||||||
- super({ exit: cache_1.default.getInstance().get('exitCodes')?.requiredArgs ?? exit, message, parse });
|
- super({ exit: cache_1.default.getInstance().get('exitCodes')?.requiredArgs ?? exit, message, parse });
|
||||||
+ super({ exit: cache_1.default.getInstance().get('exitCodes')?.requiredArgs ?? exit, message, parse, command });
|
- this.args = args;
|
||||||
this.args = args;
|
+ super({ exit: cache_1.default.getInstance().get('exitCodes')?.requiredArgs ?? exit, message, parse, command }); this.args = args;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exports.RequiredArgsError = RequiredArgsError;
|
@ -168,4 +168,5 @@ prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtim
|
|||||||
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=darwin)
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=darwin)
|
||||||
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
|
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
|
||||||
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js
|
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js
|
||||||
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=darwin)
|
||||||
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=darwin)
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=darwin)
|
@ -168,3 +168,4 @@ prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtim
|
|||||||
> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
|
> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
|
||||||
> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js
|
> Warning Failed to make bytecode node20-arm64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js
|
||||||
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=arm64 libc= platform=linux)
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=arm64 libc= platform=linux)
|
||||||
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=arm64 libc= platform=linux)
|
||||||
|
@ -168,3 +168,4 @@ prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtim
|
|||||||
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
|
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
|
||||||
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js
|
> Warning Failed to make bytecode node20-x64 for file node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js
|
||||||
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=linux)
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=linux)
|
||||||
|
prebuild-install warn install No prebuilt binaries found (target=v20.10.0 runtime=node arch=x64 libc= platform=linux)
|
||||||
|
Loading…
Reference in New Issue
Block a user