@extrahorizon/exh-cli 1.13.6-dev-219-0b40795 → 1.13.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
@@ -2,6 +2,7 @@
2
2
 
3
3
  ### v1.13.6
4
4
  * Improved the reporting of errors from the API, including additional information when available
5
+ * Improved the reporting of using unknown or incomplete commands, including usage information
5
6
  * Fixed some inconsistencies in the data schema validation, now better aligned with the backend
6
7
  * Fixed a bug in `exh data schemas sync` where permission mode arrays were not being correctly compared
7
8
  * Updated the ExH SDK to `8.13.0` to fix a security warning from `form-data` (vulnerable code was not in use)
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../../helpers/util");
5
5
  exports.command = 'schemas <command>';
6
6
  exports.desc = 'Manage data schemas';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('schemas');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('schemas')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../helpers/util");
5
5
  exports.command = 'data <command>';
6
6
  exports.desc = 'Manage data';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('data');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('data')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../helpers/util");
5
5
  exports.command = 'dispatchers <command>';
6
6
  exports.desc = 'Manage Dispatchers within Extra Horizon';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('dispatchers');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('dispatchers')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../helpers/util");
5
5
  exports.command = 'localizations <command>';
6
6
  exports.desc = 'Manage localizations';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('localizations');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('localizations')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../helpers/util");
5
5
  exports.command = 'settings <command>';
6
6
  exports.desc = 'Manage Service Settings within Extra Horizon';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('settings');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('settings')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../helpers/util");
5
5
  exports.command = 'tasks <command>';
6
6
  exports.desc = 'Manage tasks';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('tasks');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('tasks')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
@@ -4,7 +4,10 @@ exports.handler = exports.builder = exports.desc = exports.command = void 0;
4
4
  const util_1 = require("../helpers/util");
5
5
  exports.command = 'templates <command>';
6
6
  exports.desc = 'Manage templates';
7
- const builder = (yargs) => (0, util_1.epilogue)(yargs).commandDir('templates');
7
+ const builder = (yargs) => (0, util_1.epilogue)(yargs)
8
+ .commandDir('templates')
9
+ .strict()
10
+ .demandCommand(1);
8
11
  exports.builder = builder;
9
12
  const handler = () => { };
10
13
  exports.handler = handler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/exh-cli",
3
- "version": "1.13.6-dev-219-0b40795",
3
+ "version": "1.13.6",
4
4
  "main": "build/index.js",
5
5
  "exports": "./build/index.js",
6
6
  "license": "MIT",