balena-cli 18.2.5 → 18.2.6

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 CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 18.2.6 - 2024-06-21
8
+
9
+ * Update @oclif/core from 3.26.9 to 3.27.0 [Otavio Jacobi]
10
+
7
11
  ## 18.2.5 - 2024-06-21
8
12
 
9
13
  * Limit @oclif/core to ~3.26 so that npm dedupe doesn't auto-bump it [Thodoris Greasidis]
@@ -27,7 +27,7 @@ export default class ConfigGenerateCmd extends Command {
27
27
  deprecateAliases?: boolean;
28
28
  noCacheDefault?: boolean;
29
29
  type: "option";
30
- helpValue?: string;
30
+ helpValue?: string | string[];
31
31
  options?: readonly string[];
32
32
  multiple?: boolean;
33
33
  multipleNonGreedy?: boolean;
@@ -60,7 +60,7 @@ export default class ConfigGenerateCmd extends Command {
60
60
  deprecateAliases?: boolean;
61
61
  noCacheDefault?: boolean;
62
62
  type: "option";
63
- helpValue?: string;
63
+ helpValue?: string | string[];
64
64
  options?: readonly string[];
65
65
  multiple?: boolean;
66
66
  multipleNonGreedy?: boolean;
@@ -29,7 +29,7 @@ export default class EnvAddCmd extends Command {
29
29
  deprecateAliases?: boolean;
30
30
  noCacheDefault?: boolean;
31
31
  type: "option";
32
- helpValue?: string;
32
+ helpValue?: string | string[];
33
33
  options?: readonly string[];
34
34
  multiple?: boolean;
35
35
  multipleNonGreedy?: boolean;
@@ -60,7 +60,7 @@ export default class EnvAddCmd extends Command {
60
60
  deprecateAliases?: boolean;
61
61
  noCacheDefault?: boolean;
62
62
  type: "option";
63
- helpValue?: string;
63
+ helpValue?: string | string[];
64
64
  options?: readonly string[];
65
65
  multiple?: boolean;
66
66
  multipleNonGreedy?: boolean;
@@ -32,7 +32,7 @@ export default class EnvsCmd extends Command {
32
32
  deprecateAliases?: boolean;
33
33
  noCacheDefault?: boolean;
34
34
  type: "option";
35
- helpValue?: string;
35
+ helpValue?: string | string[];
36
36
  options?: readonly string[];
37
37
  multiple?: boolean;
38
38
  multipleNonGreedy?: boolean;
@@ -64,7 +64,7 @@ export default class EnvsCmd extends Command {
64
64
  deprecateAliases?: boolean;
65
65
  noCacheDefault?: boolean;
66
66
  type: "option";
67
- helpValue?: string;
67
+ helpValue?: string | string[];
68
68
  options?: readonly string[];
69
69
  multiple?: boolean;
70
70
  multipleNonGreedy?: boolean;
@@ -97,7 +97,7 @@ export default class EnvsCmd extends Command {
97
97
  deprecateAliases?: boolean;
98
98
  noCacheDefault?: boolean;
99
99
  type: "option";
100
- helpValue?: string;
100
+ helpValue?: string | string[];
101
101
  options?: readonly string[];
102
102
  multiple?: boolean;
103
103
  multipleNonGreedy?: boolean;
@@ -27,7 +27,7 @@ export default class NoteCmd extends Command {
27
27
  deprecateAliases?: boolean;
28
28
  noCacheDefault?: boolean;
29
29
  type: "option";
30
- helpValue?: string;
30
+ helpValue?: string | string[];
31
31
  options?: readonly string[];
32
32
  multiple?: boolean;
33
33
  multipleNonGreedy?: boolean;
@@ -29,7 +29,7 @@ export default class OsConfigureCmd extends Command {
29
29
  deprecateAliases?: boolean;
30
30
  noCacheDefault?: boolean;
31
31
  type: "option";
32
- helpValue?: string;
32
+ helpValue?: string | string[];
33
33
  options?: readonly string[];
34
34
  multiple?: boolean;
35
35
  multipleNonGreedy?: boolean;
@@ -67,7 +67,7 @@ export default class OsConfigureCmd extends Command {
67
67
  deprecateAliases?: boolean;
68
68
  noCacheDefault?: boolean;
69
69
  type: "option";
70
- helpValue?: string;
70
+ helpValue?: string | string[];
71
71
  options?: readonly string[];
72
72
  multiple?: boolean;
73
73
  multipleNonGreedy?: boolean;
@@ -28,7 +28,7 @@ export default class SupportCmd extends Command {
28
28
  deprecateAliases?: boolean;
29
29
  noCacheDefault?: boolean;
30
30
  type: "option";
31
- helpValue?: string;
31
+ helpValue?: string | string[];
32
32
  options?: readonly string[];
33
33
  multiple?: boolean;
34
34
  multipleNonGreedy?: boolean;
@@ -27,7 +27,7 @@ export default class TagRmCmd extends Command {
27
27
  deprecateAliases?: boolean;
28
28
  noCacheDefault?: boolean;
29
29
  type: "option";
30
- helpValue?: string;
30
+ helpValue?: string | string[];
31
31
  options?: readonly string[];
32
32
  multiple?: boolean;
33
33
  multipleNonGreedy?: boolean;
@@ -58,7 +58,7 @@ export default class TagRmCmd extends Command {
58
58
  deprecateAliases?: boolean;
59
59
  noCacheDefault?: boolean;
60
60
  type: "option";
61
- helpValue?: string;
61
+ helpValue?: string | string[];
62
62
  options?: readonly string[];
63
63
  multiple?: boolean;
64
64
  multipleNonGreedy?: boolean;
@@ -89,7 +89,7 @@ export default class TagRmCmd extends Command {
89
89
  deprecateAliases?: boolean;
90
90
  noCacheDefault?: boolean;
91
91
  type: "option";
92
- helpValue?: string;
92
+ helpValue?: string | string[];
93
93
  options?: readonly string[];
94
94
  multiple?: boolean;
95
95
  multipleNonGreedy?: boolean;
@@ -29,7 +29,7 @@ export default class TagSetCmd extends Command {
29
29
  deprecateAliases?: boolean;
30
30
  noCacheDefault?: boolean;
31
31
  type: "option";
32
- helpValue?: string;
32
+ helpValue?: string | string[];
33
33
  options?: readonly string[];
34
34
  multiple?: boolean;
35
35
  multipleNonGreedy?: boolean;
@@ -60,7 +60,7 @@ export default class TagSetCmd extends Command {
60
60
  deprecateAliases?: boolean;
61
61
  noCacheDefault?: boolean;
62
62
  type: "option";
63
- helpValue?: string;
63
+ helpValue?: string | string[];
64
64
  options?: readonly string[];
65
65
  multiple?: boolean;
66
66
  multipleNonGreedy?: boolean;
@@ -91,7 +91,7 @@ export default class TagSetCmd extends Command {
91
91
  deprecateAliases?: boolean;
92
92
  noCacheDefault?: boolean;
93
93
  type: "option";
94
- helpValue?: string;
94
+ helpValue?: string | string[];
95
95
  options?: readonly string[];
96
96
  multiple?: boolean;
97
97
  multipleNonGreedy?: boolean;
@@ -24,7 +24,7 @@ export default class TagsCmd extends Command {
24
24
  deprecateAliases?: boolean;
25
25
  noCacheDefault?: boolean;
26
26
  type: "option";
27
- helpValue?: string;
27
+ helpValue?: string | string[];
28
28
  options?: readonly string[];
29
29
  multiple?: boolean;
30
30
  multipleNonGreedy?: boolean;
@@ -55,7 +55,7 @@ export default class TagsCmd extends Command {
55
55
  deprecateAliases?: boolean;
56
56
  noCacheDefault?: boolean;
57
57
  type: "option";
58
- helpValue?: string;
58
+ helpValue?: string | string[];
59
59
  options?: readonly string[];
60
60
  multiple?: boolean;
61
61
  multipleNonGreedy?: boolean;
@@ -86,7 +86,7 @@ export default class TagsCmd extends Command {
86
86
  deprecateAliases?: boolean;
87
87
  noCacheDefault?: boolean;
88
88
  type: "option";
89
- helpValue?: string;
89
+ helpValue?: string | string[];
90
90
  options?: readonly string[];
91
91
  multiple?: boolean;
92
92
  multipleNonGreedy?: boolean;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "balena-cli",
3
- "version": "18.2.5",
3
+ "version": "18.2.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "balena-cli",
9
- "version": "18.2.5",
9
+ "version": "18.2.6",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -14,7 +14,7 @@
14
14
  "@balena/dockerignore": "^1.0.2",
15
15
  "@balena/env-parsing": "^1.1.8",
16
16
  "@balena/es-version": "^1.0.1",
17
- "@oclif/core": "~3.26.9",
17
+ "@oclif/core": "^3.27.0",
18
18
  "@resin.io/valid-email": "^0.1.0",
19
19
  "@sentry/node": "^6.16.1",
20
20
  "@types/fast-levenshtein": "0.0.1",
@@ -1910,10 +1910,9 @@
1910
1910
  }
1911
1911
  },
1912
1912
  "node_modules/@oclif/core": {
1913
- "version": "3.26.9",
1914
- "resolved": "https://registry.npmjs.org/@oclif/core/-/core-3.26.9.tgz",
1915
- "integrity": "sha512-yB5Yxd62DsHqqCK/60L8IiGpTRIU4J+fzCqfbPRiIYE5+agfN63kppaM+TbqyMBdsnt/PQOnYD8Bhs1quUr6fg==",
1916
- "license": "MIT",
1913
+ "version": "3.27.0",
1914
+ "resolved": "https://registry.npmjs.org/@oclif/core/-/core-3.27.0.tgz",
1915
+ "integrity": "sha512-Fg93aNFvXzBq5L7ztVHFP2nYwWU1oTCq48G0TjF/qC1UN36KWa2H5Hsm72kERd5x/sjy2M2Tn4kDEorUlpXOlw==",
1917
1916
  "dependencies": {
1918
1917
  "@types/cli-progress": "^3.11.5",
1919
1918
  "ansi-escapes": "^4.3.2",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "18.2.5",
2
+ "version": "18.2.6",
3
3
  "commands": {
4
4
  "api-key:generate": {
5
5
  "id": "api-key:generate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-cli",
3
- "version": "18.2.5",
3
+ "version": "18.2.6",
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",
@@ -202,7 +202,7 @@
202
202
  "@balena/dockerignore": "^1.0.2",
203
203
  "@balena/env-parsing": "^1.1.8",
204
204
  "@balena/es-version": "^1.0.1",
205
- "@oclif/core": "~3.26.9",
205
+ "@oclif/core": "^3.27.0",
206
206
  "@resin.io/valid-email": "^0.1.0",
207
207
  "@sentry/node": "^6.16.1",
208
208
  "@types/fast-levenshtein": "0.0.1",
@@ -287,6 +287,6 @@
287
287
  "windosu": "^0.3.0"
288
288
  },
289
289
  "versionist": {
290
- "publishedAt": "2024-06-21T11:41:17.336Z"
290
+ "publishedAt": "2024-06-21T12:54:08.386Z"
291
291
  }
292
292
  }
@@ -12,37 +12,19 @@ index 607d8dc..07ba1f2 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 bc54de4..cb246ce 100644
15
+ index 930598f..867799b 100644
16
16
  --- a/node_modules/@oclif/core/lib/help/command.js
17
17
  +++ b/node_modules/@oclif/core/lib/help/command.js
18
- @@ -59,7 +59,9 @@ class CommandHelp extends formatter_1.HelpFormatter {
18
+ @@ -59,7 +59,8 @@ class CommandHelp extends formatter_1.HelpFormatter {
19
19
  return;
20
20
  return args.map((a) => {
21
21
  // Add ellipsis to indicate that the argument takes multiple values if strict is false
22
22
  - const name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
23
23
  + let name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
24
24
  + name = a.required ? `<${name}>` : `[${name}]`;
25
- +
26
25
  let description = a.description || '';
27
26
  if (a.default)
28
27
  description = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${a.default}]`)} ${description}`;
29
- @@ -154,14 +156,12 @@ class CommandHelp extends formatter_1.HelpFormatter {
30
- label = labels.join(flag.char ? (0, theme_1.colorize)(this.config?.theme?.flagSeparator, ', ') : ' ');
31
- }
32
- if (flag.type === 'option') {
33
- - let value = flag.helpValue || (this.opts.showFlagNameInTitle ? flag.name : '<value>');
34
- + let value = flag.helpValue || (this.opts.showFlagNameInTitle ? flag.name : `<${flag.name}>`);
35
- if (!flag.helpValue && flag.options) {
36
- value = showOptions || this.opts.showFlagOptionsInTitle ? `${flag.options.join('|')}` : '<option>';
37
- }
38
- if (flag.multiple)
39
- - value += '...';
40
- - if (!value.includes('|'))
41
- - value = chalk_1.default.underline(value);
42
- + value += ' ...';
43
- label += `=${value}`;
44
- }
45
- return (0, theme_1.colorize)(this.config.theme?.flag, label);
46
28
  diff --git a/node_modules/@oclif/core/lib/help/index.js b/node_modules/@oclif/core/lib/help/index.js
47
29
  index e1859e1..756654c 100644
48
30
  --- a/node_modules/@oclif/core/lib/help/index.js
@@ -63,7 +45,7 @@ index e1859e1..756654c 100644
63
45
  const uniqueSubCommands = subCommands.filter((p) => {
64
46
  aliases.push(...p.aliases);
65
47
  diff --git a/node_modules/@oclif/core/lib/parser/errors.js b/node_modules/@oclif/core/lib/parser/errors.js
66
- index b37743a..489d66e 100644
48
+ index b37743a..6b2e5c3 100644
67
49
  --- a/node_modules/@oclif/core/lib/parser/errors.js
68
50
  +++ b/node_modules/@oclif/core/lib/parser/errors.js
69
51
  @@ -15,7 +15,8 @@ class CLIParseError extends errors_1.CLIError {
@@ -76,18 +58,17 @@ index b37743a..489d66e 100644
76
58
  super(options.message, { exit: options.exit });
77
59
  this.parse = options.parse;
78
60
  }
79
- @@ -38,7 +39,9 @@ exports.InvalidArgsSpecError = InvalidArgsSpecError;
61
+ @@ -38,7 +39,8 @@ exports.InvalidArgsSpecError = InvalidArgsSpecError;
80
62
  class RequiredArgsError extends CLIParseError {
81
63
  args;
82
64
  constructor({ args, exit, flagsWithMultiple, parse, }) {
83
65
  - let message = `Missing ${args.length} required arg${args.length === 1 ? '' : 's'}`;
84
66
  + const command = 'balena ' + parse.input.context.id.replace(/:/g, ' ');
85
67
  + let message = `Missing ${args.length} required argument${args.length === 1 ? '' : 's'}`;
86
- +
87
68
  const namedArgs = args.filter((a) => a.name);
88
69
  if (namedArgs.length > 0) {
89
70
  const list = (0, list_1.renderList)(namedArgs.map((a) => {
90
- @@ -52,7 +55,7 @@ class RequiredArgsError extends CLIParseError {
71
+ @@ -52,7 +54,7 @@ class RequiredArgsError extends CLIParseError {
91
72
  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'}.`;
92
73
  message += '\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.';
93
74
  }