@travetto/cli 8.0.0-alpha.23 → 8.0.0-alpha.25
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/README.md +11 -6
- package/package.json +3 -3
- package/src/help.ts +2 -2
package/README.md
CHANGED
|
@@ -287,7 +287,8 @@ $ trv custom:arg --help
|
|
|
287
287
|
|
|
288
288
|
Usage: custom:arg [options] [volume:number]
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
Description:
|
|
291
|
+
Example command with a custom argument
|
|
291
292
|
|
|
292
293
|
Options:
|
|
293
294
|
-m, --message <string> The message to send back to the user (default: "hello")
|
|
@@ -340,7 +341,8 @@ $ trv custom:env-arg --help
|
|
|
340
341
|
|
|
341
342
|
Usage: custom:env-arg [options] [volume:number]
|
|
342
343
|
|
|
343
|
-
|
|
344
|
+
Description:
|
|
345
|
+
Example of a command with a custom environment variable argument
|
|
344
346
|
|
|
345
347
|
Options:
|
|
346
348
|
-t, --text <string> The message to send back to the user (default: "hello")
|
|
@@ -455,7 +457,9 @@ import type { WebHttpServer } from '../src/types.ts';
|
|
|
455
457
|
* Initializes registry and server bindings, supports restart-aware development
|
|
456
458
|
* flags, and can attempt to clear conflicting port owners in local workflows.
|
|
457
459
|
*
|
|
458
|
-
* @example
|
|
460
|
+
* @example
|
|
461
|
+
* Starting a web server on port 8000
|
|
462
|
+
* > trv web:http -m <MODULE> -p 8000
|
|
459
463
|
*/
|
|
460
464
|
@CliCommand()
|
|
461
465
|
export class WebHttpCommand implements CliCommandShape {
|
|
@@ -570,10 +574,11 @@ $ trv service --help
|
|
|
570
574
|
|
|
571
575
|
Usage: service [options] <action:restart|start|status|stop> [services...:string]
|
|
572
576
|
|
|
573
|
-
|
|
577
|
+
Description:
|
|
578
|
+
Manage development services (start/stop/restart/status) across the workspace.
|
|
574
579
|
|
|
575
|
-
Services are discovered from registered descriptors and executed with streamed
|
|
576
|
-
terminal feedback, including optional quiet mode.
|
|
580
|
+
Services are discovered from registered descriptors and executed with streamed
|
|
581
|
+
terminal feedback, including optional quiet mode.
|
|
577
582
|
|
|
578
583
|
Options:
|
|
579
584
|
-q, --quiet (default: false)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/cli",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI infrastructure for Travetto framework",
|
|
6
6
|
"keywords": [
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"directory": "module/cli"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@travetto/schema": "^8.0.0-alpha.
|
|
33
|
-
"@travetto/terminal": "^8.0.0-alpha.
|
|
32
|
+
"@travetto/schema": "^8.0.0-alpha.19",
|
|
33
|
+
"@travetto/terminal": "^8.0.0-alpha.18"
|
|
34
34
|
},
|
|
35
35
|
"travetto": {
|
|
36
36
|
"displayName": "Command Line Interface",
|
package/src/help.ts
CHANGED
|
@@ -50,8 +50,8 @@ export class HelpUtil {
|
|
|
50
50
|
const arg = `${field.name}${field.array ? '...' : ''}:${type}`;
|
|
51
51
|
usage.push(cliTpl`${{ input: field.required?.active !== false ? `<${arg}>` : `[${arg}]` }}`);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
return usage;
|
|
53
|
+
|
|
54
|
+
return [usage.join(' '), ''];
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/** Get description help for a command */
|