@twin.org/cli-core 0.0.1-next.7 → 0.0.1-next.70

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.
@@ -81,7 +81,7 @@ class CLIDisplay {
81
81
  if (lineBreaks) {
82
82
  CLIDisplay.writeError("\n");
83
83
  }
84
- const formatted = core.ErrorHelper.formatErrors(error);
84
+ const formatted = core.ErrorHelper.formatErrors(error, true);
85
85
  CLIDisplay.writeError(chalk.red(formatted.map(e => `\t${e}`).join("\n")));
86
86
  if (lineBreaks) {
87
87
  CLIDisplay.writeError("\n");
@@ -298,6 +298,17 @@ class CLIUtils {
298
298
  });
299
299
  });
300
300
  }
301
+ /**
302
+ * Run a shell command.
303
+ * @param command The app to run in the shell.
304
+ * @param args The args for the app.
305
+ * @param cwd The working directory to execute the command in.
306
+ * @returns Promise to wait for command execution to complete.
307
+ */
308
+ static async runShellCmd(command, args, cwd) {
309
+ const osCommand = process.platform.startsWith("win") ? `${command}.cmd` : command;
310
+ return CLIUtils.runShellApp(osCommand, args, cwd);
311
+ }
301
312
  /**
302
313
  * Run a shell app.
303
314
  * @param app The app to run in the shell.
@@ -305,10 +316,9 @@ class CLIUtils {
305
316
  * @param cwd The working directory to execute the command in.
306
317
  * @returns Promise to wait for command execution to complete.
307
318
  */
308
- static async runShellCmd(app, args, cwd) {
319
+ static async runShellApp(app, args, cwd) {
309
320
  return new Promise((resolve, reject) => {
310
- const osCommand = process.platform.startsWith("win") ? `${app}.cmd` : app;
311
- const sp = node_child_process.spawn(osCommand, args, {
321
+ const sp = node_child_process.spawn(app, args, {
312
322
  shell: true,
313
323
  cwd
314
324
  });
@@ -346,7 +356,7 @@ class CLIUtils {
346
356
  CLIDisplay.task(core.I18n.formatMessage("cli.progress.writingJsonFile"), filename);
347
357
  CLIDisplay.break();
348
358
  await promises.mkdir(path.dirname(filename), { recursive: true });
349
- await promises.writeFile(filename, JSON.stringify(core.ObjectHelper.merge(currentJson, data), undefined, "\t"));
359
+ await promises.writeFile(filename, `${JSON.stringify(core.ObjectHelper.merge(currentJson, data), undefined, "\t")}\n`);
350
360
  }
351
361
  }
352
362
  /**
@@ -377,7 +387,7 @@ class CLIUtils {
377
387
  for (const line of data) {
378
388
  const parts = line.split("=");
379
389
  const currentIndex = outputKeys.indexOf(parts[0]);
380
- if (currentIndex >= 0) {
390
+ if (currentIndex !== -1) {
381
391
  outputKeys.splice(currentIndex, 1);
382
392
  }
383
393
  outputKeys.push(parts[0]);
@@ -627,7 +637,7 @@ class CLIParam {
627
637
  return optionValue;
628
638
  }
629
639
  /**
630
- * Check the option to see if it exists.
640
+ * Check the option to see if the String exists.
631
641
  * @param optionName The name of the option.
632
642
  * @param optionValue The option value.
633
643
  * @param allowEnvVar Allow the option to be read from an env var.
@@ -640,7 +650,7 @@ class CLIParam {
640
650
  return optionValue;
641
651
  }
642
652
  /**
643
- * Check the option to see if it a url.
653
+ * Check the option to see if it is a url.
644
654
  * @param optionName The name of the option.
645
655
  * @param optionValue The option value.
646
656
  * @param allowEnvVar Allow the option to be read from an env var.
@@ -60,7 +60,7 @@ class CLIDisplay {
60
60
  if (lineBreaks) {
61
61
  CLIDisplay.writeError("\n");
62
62
  }
63
- const formatted = ErrorHelper.formatErrors(error);
63
+ const formatted = ErrorHelper.formatErrors(error, true);
64
64
  CLIDisplay.writeError(chalk.red(formatted.map(e => `\t${e}`).join("\n")));
65
65
  if (lineBreaks) {
66
66
  CLIDisplay.writeError("\n");
@@ -277,6 +277,17 @@ class CLIUtils {
277
277
  });
278
278
  });
279
279
  }
280
+ /**
281
+ * Run a shell command.
282
+ * @param command The app to run in the shell.
283
+ * @param args The args for the app.
284
+ * @param cwd The working directory to execute the command in.
285
+ * @returns Promise to wait for command execution to complete.
286
+ */
287
+ static async runShellCmd(command, args, cwd) {
288
+ const osCommand = process.platform.startsWith("win") ? `${command}.cmd` : command;
289
+ return CLIUtils.runShellApp(osCommand, args, cwd);
290
+ }
280
291
  /**
281
292
  * Run a shell app.
282
293
  * @param app The app to run in the shell.
@@ -284,10 +295,9 @@ class CLIUtils {
284
295
  * @param cwd The working directory to execute the command in.
285
296
  * @returns Promise to wait for command execution to complete.
286
297
  */
287
- static async runShellCmd(app, args, cwd) {
298
+ static async runShellApp(app, args, cwd) {
288
299
  return new Promise((resolve, reject) => {
289
- const osCommand = process.platform.startsWith("win") ? `${app}.cmd` : app;
290
- const sp = spawn(osCommand, args, {
300
+ const sp = spawn(app, args, {
291
301
  shell: true,
292
302
  cwd
293
303
  });
@@ -325,7 +335,7 @@ class CLIUtils {
325
335
  CLIDisplay.task(I18n.formatMessage("cli.progress.writingJsonFile"), filename);
326
336
  CLIDisplay.break();
327
337
  await mkdir(path.dirname(filename), { recursive: true });
328
- await writeFile(filename, JSON.stringify(ObjectHelper.merge(currentJson, data), undefined, "\t"));
338
+ await writeFile(filename, `${JSON.stringify(ObjectHelper.merge(currentJson, data), undefined, "\t")}\n`);
329
339
  }
330
340
  }
331
341
  /**
@@ -356,7 +366,7 @@ class CLIUtils {
356
366
  for (const line of data) {
357
367
  const parts = line.split("=");
358
368
  const currentIndex = outputKeys.indexOf(parts[0]);
359
- if (currentIndex >= 0) {
369
+ if (currentIndex !== -1) {
360
370
  outputKeys.splice(currentIndex, 1);
361
371
  }
362
372
  outputKeys.push(parts[0]);
@@ -606,7 +616,7 @@ class CLIParam {
606
616
  return optionValue;
607
617
  }
608
618
  /**
609
- * Check the option to see if it exists.
619
+ * Check the option to see if the String exists.
610
620
  * @param optionName The name of the option.
611
621
  * @param optionValue The option value.
612
622
  * @param allowEnvVar Allow the option to be read from an env var.
@@ -619,7 +629,7 @@ class CLIParam {
619
629
  return optionValue;
620
630
  }
621
631
  /**
622
- * Check the option to see if it a url.
632
+ * Check the option to see if it is a url.
623
633
  * @param optionName The name of the option.
624
634
  * @param optionValue The option value.
625
635
  * @param allowEnvVar Allow the option to be read from an env var.
@@ -12,7 +12,7 @@ export declare class CLIParam {
12
12
  */
13
13
  static env(optionName: string, optionValue: string | undefined, allowEnvVar: boolean): string | undefined;
14
14
  /**
15
- * Check the option to see if it exists.
15
+ * Check the option to see if the String exists.
16
16
  * @param optionName The name of the option.
17
17
  * @param optionValue The option value.
18
18
  * @param allowEnvVar Allow the option to be read from an env var.
@@ -21,7 +21,7 @@ export declare class CLIParam {
21
21
  */
22
22
  static stringValue(optionName: string, optionValue: string | undefined, allowEnvVar?: boolean): string;
23
23
  /**
24
- * Check the option to see if it a url.
24
+ * Check the option to see if it is a url.
25
25
  * @param optionName The name of the option.
26
26
  * @param optionValue The option value.
27
27
  * @param allowEnvVar Allow the option to be read from an env var.
@@ -56,6 +56,14 @@ export declare class CLIUtils {
56
56
  * @returns The root path.
57
57
  */
58
58
  static findNpmRoot(rootFolder: string): Promise<string>;
59
+ /**
60
+ * Run a shell command.
61
+ * @param command The app to run in the shell.
62
+ * @param args The args for the app.
63
+ * @param cwd The working directory to execute the command in.
64
+ * @returns Promise to wait for command execution to complete.
65
+ */
66
+ static runShellCmd(command: string, args: string[], cwd: string): Promise<void>;
59
67
  /**
60
68
  * Run a shell app.
61
69
  * @param app The app to run in the shell.
@@ -63,7 +71,7 @@ export declare class CLIUtils {
63
71
  * @param cwd The working directory to execute the command in.
64
72
  * @returns Promise to wait for command execution to complete.
65
73
  */
66
- static runShellCmd(app: string, args: string[], cwd: string): Promise<void>;
74
+ static runShellApp(app: string, args: string[], cwd: string): Promise<void>;
67
75
  /**
68
76
  * Write a JSON file.
69
77
  * @param jsonFilename The filename to write.
package/docs/changelog.md CHANGED
@@ -1,5 +1,355 @@
1
1
  # @twin.org/cli-core - Changelog
2
2
 
3
- ## 0.0.1-next.7
3
+ ## [0.0.1-next.70](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.69...cli-core-v0.0.1-next.70) (2025-07-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
9
+ * improve error display in CLI ([94b6ca8](https://github.com/twinfoundation/framework/commit/94b6ca8bdcfe3ca7671c4095b436ea7bddaae98e))
10
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
11
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * framework pr naming convention ([#142](https://github.com/twinfoundation/framework/issues/142)) ([e29acee](https://github.com/twinfoundation/framework/commit/e29acee2fbec42506091956d6ba8b8ce25a90008))
17
+
18
+
19
+ ### Dependencies
20
+
21
+ * The following workspace dependencies were updated
22
+ * dependencies
23
+ * @twin.org/core bumped from 0.0.1-next.69 to 0.0.1-next.70
24
+ * @twin.org/crypto bumped from 0.0.1-next.69 to 0.0.1-next.70
25
+ * @twin.org/nameof bumped from 0.0.1-next.69 to 0.0.1-next.70
26
+ * devDependencies
27
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
28
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.69 to 0.0.1-next.70
29
+
30
+ ## [0.0.1-next.69](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.68...cli-core-v0.0.1-next.69) (2025-07-02)
31
+
32
+
33
+ ### Features
34
+
35
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
36
+ * improve error display in CLI ([94b6ca8](https://github.com/twinfoundation/framework/commit/94b6ca8bdcfe3ca7671c4095b436ea7bddaae98e))
37
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
38
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * framework pr naming convention ([#142](https://github.com/twinfoundation/framework/issues/142)) ([e29acee](https://github.com/twinfoundation/framework/commit/e29acee2fbec42506091956d6ba8b8ce25a90008))
44
+
45
+
46
+ ### Dependencies
47
+
48
+ * The following workspace dependencies were updated
49
+ * dependencies
50
+ * @twin.org/core bumped from 0.0.1-next.68 to 0.0.1-next.69
51
+ * @twin.org/crypto bumped from 0.0.1-next.68 to 0.0.1-next.69
52
+ * @twin.org/nameof bumped from 0.0.1-next.68 to 0.0.1-next.69
53
+ * devDependencies
54
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
55
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.68 to 0.0.1-next.69
56
+
57
+ ## [0.0.1-next.68](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.67...cli-core-v0.0.1-next.68) (2025-07-02)
58
+
59
+
60
+ ### Features
61
+
62
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
63
+
64
+
65
+ ### Dependencies
66
+
67
+ * The following workspace dependencies were updated
68
+ * dependencies
69
+ * @twin.org/core bumped from 0.0.1-next.67 to 0.0.1-next.68
70
+ * @twin.org/crypto bumped from 0.0.1-next.67 to 0.0.1-next.68
71
+ * @twin.org/nameof bumped from 0.0.1-next.67 to 0.0.1-next.68
72
+ * devDependencies
73
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
74
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.67 to 0.0.1-next.68
75
+
76
+ ## [0.0.1-next.67](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.66...cli-core-v0.0.1-next.67) (2025-06-26)
77
+
78
+
79
+ ### Miscellaneous Chores
80
+
81
+ * **cli-core:** Synchronize repo versions
82
+
83
+
84
+ ### Dependencies
85
+
86
+ * The following workspace dependencies were updated
87
+ * dependencies
88
+ * @twin.org/core bumped from 0.0.1-next.66 to 0.0.1-next.67
89
+ * @twin.org/crypto bumped from 0.0.1-next.66 to 0.0.1-next.67
90
+
91
+ ## [0.0.1-next.66](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.65...cli-core-v0.0.1-next.66) (2025-06-26)
92
+
93
+
94
+ ### Miscellaneous Chores
95
+
96
+ * **cli-core:** Synchronize repo versions
97
+
98
+
99
+ ### Dependencies
100
+
101
+ * The following workspace dependencies were updated
102
+ * dependencies
103
+ * @twin.org/core bumped from 0.0.1-next.65 to 0.0.1-next.66
104
+ * @twin.org/crypto bumped from 0.0.1-next.65 to 0.0.1-next.66
105
+
106
+ ## [0.0.1-next.65](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.64...cli-core-v0.0.1-next.65) (2025-06-19)
107
+
108
+
109
+ ### Miscellaneous Chores
110
+
111
+ * **cli-core:** Synchronize repo versions
112
+
113
+
114
+ ### Dependencies
115
+
116
+ * The following workspace dependencies were updated
117
+ * dependencies
118
+ * @twin.org/core bumped from 0.0.1-next.64 to 0.0.1-next.65
119
+ * @twin.org/crypto bumped from 0.0.1-next.64 to 0.0.1-next.65
120
+
121
+ ## [0.0.1-next.64](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.63...cli-core-v0.0.1-next.64) (2025-06-19)
122
+
123
+
124
+ ### Miscellaneous Chores
125
+
126
+ * **cli-core:** Synchronize repo versions
127
+
128
+
129
+ ### Dependencies
130
+
131
+ * The following workspace dependencies were updated
132
+ * dependencies
133
+ * @twin.org/core bumped from 0.0.1-next.63 to 0.0.1-next.64
134
+ * @twin.org/crypto bumped from 0.0.1-next.63 to 0.0.1-next.64
135
+
136
+ ## [0.0.1-next.63](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.62...cli-core-v0.0.1-next.63) (2025-06-18)
137
+
138
+
139
+ ### Miscellaneous Chores
140
+
141
+ * **cli-core:** Synchronize repo versions
142
+
143
+
144
+ ### Dependencies
145
+
146
+ * The following workspace dependencies were updated
147
+ * dependencies
148
+ * @twin.org/core bumped from 0.0.1-next.62 to 0.0.1-next.63
149
+ * @twin.org/crypto bumped from 0.0.1-next.62 to 0.0.1-next.63
150
+
151
+ ## [0.0.1-next.62](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.61...cli-core-v0.0.1-next.62) (2025-06-17)
152
+
153
+
154
+ ### Features
155
+
156
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
157
+ * improve error display in CLI ([94b6ca8](https://github.com/twinfoundation/framework/commit/94b6ca8bdcfe3ca7671c4095b436ea7bddaae98e))
158
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
159
+
160
+
161
+ ### Bug Fixes
162
+
163
+ * framework pr naming convention ([#142](https://github.com/twinfoundation/framework/issues/142)) ([e29acee](https://github.com/twinfoundation/framework/commit/e29acee2fbec42506091956d6ba8b8ce25a90008))
164
+
165
+
166
+ ### Dependencies
167
+
168
+ * The following workspace dependencies were updated
169
+ * dependencies
170
+ * @twin.org/core bumped from 0.0.1-next.61 to 0.0.1-next.62
171
+ * @twin.org/crypto bumped from 0.0.1-next.61 to 0.0.1-next.62
172
+
173
+ ## [0.0.1-next.61](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.60...cli-core-v0.0.1-next.61) (2025-06-17)
174
+
175
+
176
+ ### Miscellaneous Chores
177
+
178
+ * **cli-core:** Synchronize repo versions
179
+
180
+
181
+ ### Dependencies
182
+
183
+ * The following workspace dependencies were updated
184
+ * dependencies
185
+ * @twin.org/core bumped from 0.0.1-next.60 to 0.0.1-next.61
186
+ * @twin.org/crypto bumped from 0.0.1-next.60 to 0.0.1-next.61
187
+
188
+ ## [0.0.1-next.60](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.59...cli-core-v0.0.1-next.60) (2025-06-17)
189
+
190
+
191
+ ### Features
192
+
193
+ * improve error display in CLI ([94b6ca8](https://github.com/twinfoundation/framework/commit/94b6ca8bdcfe3ca7671c4095b436ea7bddaae98e))
194
+
195
+
196
+ ### Dependencies
197
+
198
+ * The following workspace dependencies were updated
199
+ * dependencies
200
+ * @twin.org/core bumped from 0.0.1-next.59 to 0.0.1-next.60
201
+ * @twin.org/crypto bumped from 0.0.1-next.59 to 0.0.1-next.60
202
+
203
+ ## [0.0.1-next.59](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.58...cli-core-v0.0.1-next.59) (2025-06-17)
204
+
205
+
206
+ ### Miscellaneous Chores
207
+
208
+ * **cli-core:** Synchronize repo versions
209
+
210
+
211
+ ### Dependencies
212
+
213
+ * The following workspace dependencies were updated
214
+ * dependencies
215
+ * @twin.org/core bumped from 0.0.1-next.58 to 0.0.1-next.59
216
+ * @twin.org/crypto bumped from 0.0.1-next.58 to 0.0.1-next.59
217
+
218
+ ## [0.0.1-next.58](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.57...cli-core-v0.0.1-next.58) (2025-06-13)
219
+
220
+
221
+ ### Bug Fixes
222
+
223
+ * framework pr naming convention ([#142](https://github.com/twinfoundation/framework/issues/142)) ([e29acee](https://github.com/twinfoundation/framework/commit/e29acee2fbec42506091956d6ba8b8ce25a90008))
224
+
225
+
226
+ ### Dependencies
227
+
228
+ * The following workspace dependencies were updated
229
+ * dependencies
230
+ * @twin.org/core bumped from 0.0.1-next.57 to 0.0.1-next.58
231
+ * @twin.org/crypto bumped from 0.0.1-next.57 to 0.0.1-next.58
232
+
233
+ ## [0.0.1-next.57](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.56...cli-core-v0.0.1-next.57) (2025-06-10)
234
+
235
+
236
+ ### Features
237
+
238
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
239
+
240
+
241
+ ### Dependencies
242
+
243
+ * The following workspace dependencies were updated
244
+ * dependencies
245
+ * @twin.org/core bumped from 0.0.1-next.56 to 0.0.1-next.57
246
+ * @twin.org/crypto bumped from 0.0.1-next.56 to 0.0.1-next.57
247
+
248
+ ## [0.0.1-next.56](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.55...cli-core-v0.0.1-next.56) (2025-05-08)
249
+
250
+
251
+ ### Miscellaneous Chores
252
+
253
+ * **cli-core:** Synchronize repo versions
254
+
255
+
256
+ ### Dependencies
257
+
258
+ * The following workspace dependencies were updated
259
+ * dependencies
260
+ * @twin.org/core bumped from 0.0.1-next.55 to 0.0.1-next.56
261
+ * @twin.org/crypto bumped from 0.0.1-next.55 to 0.0.1-next.56
262
+
263
+ ## [0.0.1-next.55](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.54...cli-core-v0.0.1-next.55) (2025-05-07)
264
+
265
+
266
+ ### Miscellaneous Chores
267
+
268
+ * **cli-core:** Synchronize repo versions
269
+
270
+
271
+ ### Dependencies
272
+
273
+ * The following workspace dependencies were updated
274
+ * dependencies
275
+ * @twin.org/core bumped from 0.0.1-next.54 to 0.0.1-next.55
276
+ * @twin.org/crypto bumped from 0.0.1-next.54 to 0.0.1-next.55
277
+
278
+ ## [0.0.1-next.54](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.53...cli-core-v0.0.1-next.54) (2025-05-06)
279
+
280
+
281
+ ### Miscellaneous Chores
282
+
283
+ * **cli-core:** Synchronize repo versions
284
+
285
+
286
+ ### Dependencies
287
+
288
+ * The following workspace dependencies were updated
289
+ * dependencies
290
+ * @twin.org/core bumped from 0.0.1-next.53 to 0.0.1-next.54
291
+ * @twin.org/crypto bumped from 0.0.1-next.53 to 0.0.1-next.54
292
+
293
+ ## [0.0.1-next.53](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.52...cli-core-v0.0.1-next.53) (2025-05-01)
294
+
295
+
296
+ ### Miscellaneous Chores
297
+
298
+ * **cli-core:** Synchronize repo versions
299
+
300
+
301
+ ### Dependencies
302
+
303
+ * The following workspace dependencies were updated
304
+ * dependencies
305
+ * @twin.org/core bumped from 0.0.1-next.52 to 0.0.1-next.53
306
+ * @twin.org/crypto bumped from 0.0.1-next.52 to 0.0.1-next.53
307
+
308
+ ## [0.0.1-next.52](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.51...cli-core-v0.0.1-next.52) (2025-04-17)
309
+
310
+
311
+ ### Features
312
+
313
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
314
+
315
+
316
+ ### Dependencies
317
+
318
+ * The following workspace dependencies were updated
319
+ * dependencies
320
+ * @twin.org/core bumped from 0.0.1-next.51 to 0.0.1-next.52
321
+ * @twin.org/crypto bumped from 0.0.1-next.51 to 0.0.1-next.52
322
+
323
+ ## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.50...cli-core-v0.0.1-next.51) (2025-03-27)
324
+
325
+
326
+ ### Miscellaneous Chores
327
+
328
+ * **cli-core:** Synchronize repo versions
329
+
330
+
331
+ ### Dependencies
332
+
333
+ * The following workspace dependencies were updated
334
+ * dependencies
335
+ * @twin.org/core bumped from 0.0.1-next.50 to 0.0.1-next.51
336
+ * @twin.org/crypto bumped from 0.0.1-next.50 to 0.0.1-next.51
337
+
338
+ ## [0.0.1-next.50](https://github.com/twinfoundation/framework/compare/cli-core-v0.0.1-next.49...cli-core-v0.0.1-next.50) (2025-03-26)
339
+
340
+
341
+ ### Miscellaneous Chores
342
+
343
+ * **cli-core:** Synchronize repo versions
344
+
345
+
346
+ ### Dependencies
347
+
348
+ * The following workspace dependencies were updated
349
+ * dependencies
350
+ * @twin.org/core bumped from 0.0.1-next.49 to 0.0.1-next.50
351
+ * @twin.org/crypto bumped from 0.0.1-next.49 to 0.0.1-next.50
352
+
353
+ ## 0.0.1-next.49
4
354
 
5
355
  - Initial Release
@@ -4,13 +4,13 @@ The main entry point for the CLI.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new CLIBase()
7
+ ### Constructor
8
8
 
9
- > **new CLIBase**(): [`CLIBase`](CLIBase.md)
9
+ > **new CLIBase**(): `CLIBase`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`CLIBase`](CLIBase.md)
13
+ `CLIBase`
14
14
 
15
15
  ## Methods
16
16
 
@@ -22,15 +22,21 @@ Execute the command line processing.
22
22
 
23
23
  #### Parameters
24
24
 
25
- **options**: [`ICliOptions`](../interfaces/ICliOptions.md)
25
+ ##### options
26
+
27
+ [`ICliOptions`](../interfaces/ICliOptions.md)
26
28
 
27
29
  The options for the CLI.
28
30
 
29
- **localesDirectory**: `string`
31
+ ##### localesDirectory
32
+
33
+ `string`
30
34
 
31
35
  The path to load the locales from.
32
36
 
33
- **argv**: `string`[]
37
+ ##### argv
38
+
39
+ `string`[]
34
40
 
35
41
  The process arguments.
36
42
 
@@ -50,7 +56,9 @@ Configure any options or actions at the root program level.
50
56
 
51
57
  #### Parameters
52
58
 
53
- **program**: `Command`
59
+ ##### program
60
+
61
+ `Command`
54
62
 
55
63
  The root program command.
56
64
 
@@ -68,7 +76,9 @@ Get the commands for the CLI, override in derived class to supply your own.
68
76
 
69
77
  #### Parameters
70
78
 
71
- **program**: `Command`
79
+ ##### program
80
+
81
+ `Command`
72
82
 
73
83
  The main program that the commands will be added to.
74
84