@travetto/cli 6.0.0-rc.2 → 6.0.0

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 CHANGED
@@ -90,6 +90,7 @@ Examples of mappings:
90
90
  * `cli.test.ts` maps to `test`
91
91
  * `cli.pack_docker.ts` maps to `pack:docker`
92
92
  * `cli.email_template.ts` maps to `email:template`
93
+
93
94
  The pattern is that underscores(_) translate to colons (:), and the `cli.` prefix, and `.ts` suffix are dropped.
94
95
 
95
96
  ## Binding Flags
@@ -380,6 +381,7 @@ The flag files can be included in one of a few ways:
380
381
  * `+=<name>` - This translates into `<mod>/support/<name>.flags`, which is a convenient shorthand.
381
382
  * `+=<mod>/path/file.flags` - This is a path-related file that will be resolved from the module's location.
382
383
  * `+=/path/file.flags` - This is an absolute path that will be read from the root of the file system.
384
+
383
385
  Ultimately, after resolution, the content of these files will be injected inline within the location.
384
386
 
385
387
  **Code: Final arguments after Flag File resolution**
@@ -500,7 +502,7 @@ export class WebHttpCommand implements CliCommandShape {
500
502
  }
501
503
  throw err;
502
504
  }
503
- ShutdownManager.onGracefulShutdown(res.kill);
505
+ ShutdownManager.onGracefulShutdown(res.kill, this);
504
506
  return res.wait;
505
507
  }
506
508
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/cli",
3
- "version": "6.0.0-rc.2",
3
+ "version": "6.0.0",
4
4
  "description": "CLI infrastructure for Travetto framework",
5
5
  "keywords": [
6
6
  "cli",
@@ -28,8 +28,8 @@
28
28
  "directory": "module/cli"
29
29
  },
30
30
  "dependencies": {
31
- "@travetto/schema": "^6.0.0-rc.2",
32
- "@travetto/terminal": "^6.0.0-rc.2"
31
+ "@travetto/schema": "^6.0.0",
32
+ "@travetto/terminal": "^6.0.0"
33
33
  },
34
34
  "travetto": {
35
35
  "displayName": "Command Line Interface",
package/src/error.ts CHANGED
@@ -6,14 +6,13 @@ import { CliValidationError, CliCommandShape } from './types.ts';
6
6
 
7
7
  const COMMAND_PACKAGE = [
8
8
  [/^test(:watch)?$/, 'test', false],
9
- [/^service$/, 'command', true],
10
- [/^lint(:register)?$/, 'eslint', true],
9
+ [/^lint(:register)?$/, 'eslint', false],
11
10
  [/^model:(install|export)$/, 'model', true],
12
11
  [/^openapi:(spec|client)$/, 'openapi', true],
13
12
  [/^email:(compile|editor)$/, 'email-compiler', false],
14
13
  [/^pack(:zip|:docker)?$/, 'pack', false],
15
- [/^web:http$/, 'web-http', false],
16
- [/^web:rpc-client$/, 'web-rpc', false],
14
+ [/^web:http$/, 'web-http-server', true],
15
+ [/^web:rpc-client$/, 'web-rpc', true],
17
16
  ] as const;
18
17
 
19
18
  /**