@travetto/cli 5.0.9 → 5.0.11

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
@@ -171,7 +171,7 @@ Options:
171
171
  $ trv basic:arg 20
172
172
 
173
173
  Execution failed:
174
- * Argument volume is bigger than (10)
174
+ * Argument volume is greater than (10)
175
175
 
176
176
  Usage: basic:arg [options] [volume:number]
177
177
 
@@ -234,7 +234,7 @@ $ trv basic:arglist 10 5 3 9 8 1
234
234
  $ trv basic:arglist 10 5 3 9 20 1
235
235
 
236
236
  Execution failed:
237
- * Argument volumes[4] is bigger than (10)
237
+ * Argument volumes[4] is greater than (10)
238
238
 
239
239
  Usage: basic:arglist [options] <volumes...:number>
240
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/cli",
3
- "version": "5.0.9",
3
+ "version": "5.0.11",
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": "^5.0.9",
32
- "@travetto/terminal": "^5.0.9"
31
+ "@travetto/schema": "^5.0.11",
32
+ "@travetto/terminal": "^5.0.11"
33
33
  },
34
34
  "travetto": {
35
35
  "displayName": "Command Line Interface",
package/src/error.ts CHANGED
@@ -54,7 +54,7 @@ export class CliValidationResultError extends AppError<{ errors: CliValidationEr
54
54
  command: CliCommandShape;
55
55
 
56
56
  constructor(command: CliCommandShape, errors: CliValidationError[]) {
57
- super('', undefined, { errors });
57
+ super('', { details: { errors } });
58
58
  this.command = command;
59
59
  }
60
60
  }
package/src/scm.ts CHANGED
@@ -50,7 +50,7 @@ export class CliScmUtil {
50
50
  const ws = Runtime.workspace.path;
51
51
  const res = await ExecUtil.getResult(spawn('git', ['diff', '--name-only', `${fromHash}..${toHash}`, ':!**/DOC.*', ':!**/README.*'], { cwd: ws }), { catch: true });
52
52
  if (!res.valid) {
53
- throw new AppError('Unable to detect changes between', 'data', { fromHash, toHash, output: (res.stderr || res.stdout) });
53
+ throw new AppError('Unable to detect changes between', { category: 'data', details: { fromHash, toHash, output: (res.stderr || res.stdout) } });
54
54
  }
55
55
  const out = new Set<string>();
56
56
  for (const line of res.stdout.split(/\n/g)) {