@dxos/cli 0.1.20 → 0.1.22

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
@@ -27,7 +27,7 @@ $ npm install -g @dxos/cli
27
27
  $ dx COMMAND
28
28
  running command...
29
29
  $ dx (--version)
30
- @dxos/cli/0.1.20 linux-x64 node-v18.12.1
30
+ @dxos/cli/0.1.22 linux-x64 node-v18.13.0
31
31
  $ dx --help [COMMAND]
32
32
  USAGE
33
33
  $ dx COMMAND
@@ -64,6 +64,8 @@ USAGE
64
64
  * [`dx space join`](#dx-space-join)
65
65
  * [`dx space list`](#dx-space-list)
66
66
  * [`dx space members [KEY]`](#dx-space-members-key)
67
+ * [`dx tunnel list`](#dx-tunnel-list)
68
+ * [`dx tunnel set`](#dx-tunnel-set)
67
69
 
68
70
  ## `dx app create NAME`
69
71
 
@@ -637,4 +639,45 @@ GLOBAL FLAGS
637
639
  DESCRIPTION
638
640
  List space members.
639
641
  ```
642
+
643
+ ## `dx tunnel list`
644
+
645
+ List tunnels.
646
+
647
+ ```
648
+ USAGE
649
+ $ dx tunnel list [--config <value>] [--timeout <value>] [--json]
650
+
651
+ FLAGS
652
+ --config=<value> Specify config file
653
+ --timeout=<value> [default: 30] Timeout in seconds
654
+
655
+ GLOBAL FLAGS
656
+ --json Format output as json.
657
+
658
+ DESCRIPTION
659
+ List tunnels.
660
+ ```
661
+
662
+ ## `dx tunnel set`
663
+
664
+ Enable or disable tunnel.
665
+
666
+ ```
667
+ USAGE
668
+ $ dx tunnel set --app <value> [--config <value>] [--timeout <value>] [--json] [--enabled] [--disabled]
669
+
670
+ FLAGS
671
+ --app=<value> (required) Application name
672
+ --config=<value> Specify config file
673
+ --disabled Disable tunnel.
674
+ --enabled Enable tunnel.
675
+ --timeout=<value> [default: 30] Timeout in seconds
676
+
677
+ GLOBAL FLAGS
678
+ --json Format output as json.
679
+
680
+ DESCRIPTION
681
+ Enable or disable tunnel.
682
+ ```
640
683
  <!-- commandsstop -->
@@ -0,0 +1,7 @@
1
+ import { BaseCommand } from '../../base-command';
2
+ export default class List extends BaseCommand {
3
+ static enableJsonFlag: boolean;
4
+ static description: string;
5
+ run(): Promise<any>;
6
+ }
7
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/tunnel/list.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAmB;IAExC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAa1B"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const node_assert_1 = __importDefault(require("node:assert"));
10
+ const base_command_1 = require("../../base-command");
11
+ const util_1 = require("../../util");
12
+ class List extends base_command_1.BaseCommand {
13
+ async run() {
14
+ const { flags } = await this.parse(List);
15
+ try {
16
+ return await this.execWithPublisher(async (publisher) => {
17
+ const listResponse = await publisher.rpc.listTunnels();
18
+ (0, node_assert_1.default)(listResponse.tunnels, 'Unable to list tunnels.');
19
+ (0, util_1.printTunnels)(listResponse.tunnels, flags);
20
+ });
21
+ }
22
+ catch (err) {
23
+ this.log(`Unable to list: ${err.message}`);
24
+ this.error(err, { exit: 1 });
25
+ }
26
+ }
27
+ }
28
+ exports.default = List;
29
+ List.enableJsonFlag = true;
30
+ List.description = 'List tunnels.';
31
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/tunnel/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,8DAAiC;AAEjC,qDAAiD;AACjD,qCAA4D;AAE5D,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI;YACF,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,SAA2B,EAAE,EAAE;gBACxE,MAAM,YAAY,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;gBACvD,IAAA,qBAAM,EAAC,YAAY,CAAC,OAAQ,EAAE,yBAAyB,CAAC,CAAC;gBACzD,IAAA,mBAAY,EAAC,YAAY,CAAC,OAAQ,EAAE,KAAK,CAAC,CAAC;YAC7C,CAAC,CAAC,CAAC;SACJ;QAAC,OAAO,GAAQ,EAAE;YACjB,IAAI,CAAC,GAAG,CAAC,mBAAmB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAC3C,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;SAC9B;IACH,CAAC;;AAhBH,uBAiBC;AAhBiB,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { BaseCommand } from '../../base-command';
2
+ export default class Set extends BaseCommand {
3
+ static enableJsonFlag: boolean;
4
+ static description: string;
5
+ static flags: {
6
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
+ enabled: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
+ disabled: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ config: import("@oclif/core/lib/interfaces").OptionFlag<string>;
10
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
11
+ };
12
+ run(): Promise<any>;
13
+ }
14
+ //# sourceMappingURL=set.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../../src/commands/tunnel/set.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;IAC1C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA+B;IAE1D,OAAgB,KAAK;;;;;;MAYnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAiB1B"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const core_1 = require("@oclif/core");
10
+ const node_assert_1 = __importDefault(require("node:assert"));
11
+ const base_command_1 = require("../../base-command");
12
+ const util_1 = require("../../util");
13
+ class Set extends base_command_1.BaseCommand {
14
+ async run() {
15
+ const { flags } = await this.parse(Set);
16
+ const { app, enabled, disabled } = flags;
17
+ try {
18
+ if (!!enabled === !!disabled) {
19
+ throw new Error('Specify either --enabled or --disabled.');
20
+ }
21
+ return await this.execWithPublisher(async (publisher) => {
22
+ const tunnelResponse = await publisher.rpc.tunnel({ name: app, enabled: enabled && !disabled });
23
+ (0, node_assert_1.default)(tunnelResponse, 'Unable to set tunnel.');
24
+ (0, util_1.printTunnels)([tunnelResponse], flags);
25
+ });
26
+ }
27
+ catch (err) {
28
+ this.log(`Unable to set tunnel: ${err.message}`);
29
+ this.error(err, { exit: 1 });
30
+ }
31
+ }
32
+ }
33
+ exports.default = Set;
34
+ Set.enableJsonFlag = true;
35
+ Set.description = 'Enable or disable tunnel.';
36
+ Set.flags = {
37
+ ...base_command_1.BaseCommand.flags,
38
+ app: core_1.Flags.string({
39
+ description: 'Application name',
40
+ required: true
41
+ }),
42
+ enabled: core_1.Flags.boolean({
43
+ description: 'Enable tunnel.'
44
+ }),
45
+ disabled: core_1.Flags.boolean({
46
+ description: 'Disable tunnel.'
47
+ })
48
+ };
49
+ //# sourceMappingURL=set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set.js","sourceRoot":"","sources":["../../../../src/commands/tunnel/set.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAoC;AACpC,8DAAiC;AAEjC,qDAAiD;AACjD,qCAA4D;AAE5D,MAAqB,GAAI,SAAQ,0BAAW;IAkB1C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;QACzC,IAAI;YACF,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,QAAQ,EAAE;gBAC5B,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC5D;YACD,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,SAA2B,EAAE,EAAE;gBACxE,MAAM,cAAc,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAChG,IAAA,qBAAM,EAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC;gBAChD,IAAA,mBAAY,EAAC,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC;YACxC,CAAC,CAAC,CAAC;SACJ;QAAC,OAAO,GAAQ,EAAE;YACjB,IAAI,CAAC,GAAG,CAAC,yBAAyB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YACjD,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;SAC9B;IACH,CAAC;;AAlCH,sBAmCC;AAlCiB,kBAAc,GAAG,IAAI,CAAC;AACtB,eAAW,GAAG,2BAA2B,CAAC;AAE1C,SAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,GAAG,EAAE,YAAK,CAAC,MAAM,CAAC;QAChB,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,OAAO,EAAE,YAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,gBAAgB;KAC9B,CAAC;IACF,QAAQ,EAAE,YAAK,CAAC,OAAO,CAAC;QACtB,WAAW,EAAE,iBAAiB;KAC/B,CAAC;CACH,CAAC"}
@@ -7,8 +7,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.DigitalOceanProvider = void 0;
10
- const assert_1 = __importDefault(require("assert"));
11
10
  const do_wrapper_1 = __importDefault(require("do-wrapper"));
11
+ const node_assert_1 = __importDefault(require("node:assert"));
12
12
  const async_1 = require("@dxos/async");
13
13
  const provider_1 = require("./provider");
14
14
  const DEFAULT_REGION = 'nyc3';
@@ -16,11 +16,11 @@ const DEFAULT_MEMORY = 4;
16
16
  class DigitalOceanProvider {
17
17
  constructor(config) {
18
18
  const doAccessToken = config.get('runtime.services.machine.doAccessToken');
19
- (0, assert_1.default)(doAccessToken, 'Invalid DigitalOcean Access Token.');
19
+ (0, node_assert_1.default)(doAccessToken, 'Invalid DigitalOcean Access Token.');
20
20
  this._session = new do_wrapper_1.default(doAccessToken, 100);
21
21
  }
22
22
  async getDropletIdFromName(name) {
23
- (0, assert_1.default)(name);
23
+ (0, node_assert_1.default)(name);
24
24
  const result = await this._session.droplets.getAll();
25
25
  const [targetDroplet] = result.droplets.filter((droplet) => droplet.name === name) || [];
26
26
  return targetDroplet ? targetDroplet.id : undefined;
@@ -96,7 +96,7 @@ class DigitalOceanProvider {
96
96
  break;
97
97
  }
98
98
  const sshKeys = await this.getSshKeys();
99
- (0, assert_1.default)(sshKeys.length, 'No SSH keys found.');
99
+ (0, node_assert_1.default)(sshKeys.length, 'No SSH keys found.');
100
100
  const createParameters = {
101
101
  name,
102
102
  region,
@@ -1 +1 @@
1
- {"version":3,"file":"digital-ocean.js","sourceRoot":"","sources":["../../../../src/util/provider/digital-ocean.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,4DAAsC;AAEtC,uCAA+C;AAG/C,yCAA4E;AAE5E,MAAM,cAAc,GAAG,MAAM,CAAC;AAC9B,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,MAAa,oBAAoB;IAG/B,YAAY,MAAc;QACxB,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QAC3E,IAAA,gBAAM,EAAC,aAAa,EAAE,oCAAoC,CAAC,CAAC;QAE5D,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAY,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,IAAY;QACrC,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC;QAEb,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrD,MAAM,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAY,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;QAC9F,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU;;QACd,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CA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iB;YAC5B,IAAI,EAAE,CAAC,mBAAQ,CAAC;SACjB,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACrE,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAgB,EACpC,KAAK,IAAI,EAAE;YACT,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC5E,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE,UAAU,EAAE;gBAC7E,OAAO,OAAO,CAAC;aAChB;YACD,OAAO,SAAS,CAAC;QACnB,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QAEF,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,UAAU,CAAC;QAE3F,OAAO;YACL,QAAQ,EAAE,OAAO,CAAC,IAAI;YACtB,SAAS,EAAE,OAAO,CAAC,UAAU;YAC7B,SAAS;SACV,CAAC;IACJ,CAAC;CACF;AAjID,oDAiIC"}
@@ -1,4 +1,5 @@
1
1
  import type { ConfigProto } from '@dxos/config';
2
+ import { TunnelResponse } from '@dxos/protocols/proto/dxos/service/publisher';
2
3
  export declare type PackageModule = NonNullable<NonNullable<ConfigProto['package']>['modules']>[0];
3
4
  export declare type PackageRepo = NonNullable<NonNullable<ConfigProto['package']>['repos']>[0];
4
5
  export declare type Logger = (message?: string, ...args: any[]) => void;
@@ -6,5 +7,11 @@ export declare const mapModules: (modules: PackageModule[]) => {
6
7
  key: string | undefined;
7
8
  bundle: string;
8
9
  }[];
10
+ export declare const mapTunnels: (tunnels: TunnelResponse[]) => {
11
+ key: string;
12
+ enabled: boolean;
13
+ url: string;
14
+ }[];
9
15
  export declare const printModules: (modules: PackageModule[], flags?: {}) => void;
16
+ export declare const printTunnels: (tunnels: TunnelResponse[], flags?: {}) => void;
10
17
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/util/publish/common.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,oBAAY,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3F,oBAAY,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvF,oBAAY,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEhE,eAAO,MAAM,UAAU,YAAa,aAAa,EAAE;;;GAKlD,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,aAAa,EAAE,qBAepD,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/util/publish/common.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E,oBAAY,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3F,oBAAY,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvF,oBAAY,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEhE,eAAO,MAAM,UAAU,YAAa,aAAa,EAAE;;;GAKlD,CAAC;AAEF,eAAO,MAAM,UAAU,YAAa,cAAc,EAAE;;;;GAMnD,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,aAAa,EAAE,qBAepD,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,cAAc,EAAE,qBAkBrD,CAAC"}
@@ -3,7 +3,7 @@
3
3
  // Copyright 2022 DXOS.org
4
4
  //
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.printModules = exports.mapModules = void 0;
6
+ exports.printTunnels = exports.printModules = exports.mapTunnels = exports.mapModules = void 0;
7
7
  const core_1 = require("@oclif/core");
8
8
  const ipfs_http_client_1 = require("ipfs-http-client");
9
9
  const mapModules = (modules) => {
@@ -13,6 +13,14 @@ const mapModules = (modules) => {
13
13
  }));
14
14
  };
15
15
  exports.mapModules = mapModules;
16
+ const mapTunnels = (tunnels) => {
17
+ return tunnels.map((tunnel) => ({
18
+ key: tunnel.name,
19
+ enabled: tunnel.enabled,
20
+ url: tunnel.url
21
+ }));
22
+ };
23
+ exports.mapTunnels = mapTunnels;
16
24
  const printModules = (modules, flags = {}) => {
17
25
  core_1.CliUx.ux.table((0, exports.mapModules)(modules), {
18
26
  key: {
@@ -26,4 +34,20 @@ const printModules = (modules, flags = {}) => {
26
34
  });
27
35
  };
28
36
  exports.printModules = printModules;
37
+ const printTunnels = (tunnels, flags = {}) => {
38
+ core_1.CliUx.ux.table((0, exports.mapTunnels)(tunnels), {
39
+ key: {
40
+ header: 'App'
41
+ },
42
+ enabled: {
43
+ header: 'Enabled'
44
+ },
45
+ url: {
46
+ header: 'URL'
47
+ }
48
+ }, {
49
+ ...flags
50
+ });
51
+ };
52
+ exports.printTunnels = printTunnels;
29
53
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/util/publish/common.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,sCAAoC;AACpC,uDAAuC;AAQhC,MAAM,UAAU,GAAG,CAAC,OAAwB,EAAE,EAAE;IACrD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC3B,GAAG,EAAE,GAAG,CAAC,IAAI;QACb,MAAM,EAAE,sBAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAO,CAAC,CAAC,QAAQ,EAAE;KAC3C,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AALW,QAAA,UAAU,cAKrB;AAEK,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,KAAK,GAAG,EAAE,EAAE,EAAE;IACnE,YAAK,CAAC,EAAE,CAAC,KAAK,CACZ,IAAA,kBAAU,EAAC,OAAO,CAAC,EACnB;QACE,GAAG,EAAE;YACH,MAAM,EAAE,MAAM;SACf;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;SACjB;KACF,EACD;QACE,GAAG,KAAK;KACT,CACF,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,YAAY,gBAevB"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/util/publish/common.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,sCAAoC;AACpC,uDAAuC;AAShC,MAAM,UAAU,GAAG,CAAC,OAAwB,EAAE,EAAE;IACrD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC3B,GAAG,EAAE,GAAG,CAAC,IAAI;QACb,MAAM,EAAE,sBAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAO,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TRY_DESTINATION": "https://2647916221e643869965e78469479aa4@o4504012000067584.ingest.sentry.io/4504012027265029",
5
5
  "TELEMETRY_API_KEY": "B00QG6PtJJrJ0VVFe0H5a6bcUUShKyZM",
6
6
  "IPDATA_API_KEY": "ccc5f0cd66dd34a7c31c2ddc61c2bbca2db73892a993982bb3a5f0e2"
@@ -1 +1 @@
1
- {"version":"0.1.20","commands":{"app:create":{"id":"app:create","description":"Create a DXOS project.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"tag":{"name":"tag","type":"option","description":"Git tag or branch of the DXOS repo to checkout.","multiple":false},"template":{"name":"template","type":"option","char":"t","description":"Template to use when creating the project.","multiple":false,"options":["hello","bare","tasks"],"default":"hello"},"interactive":{"name":"interactive","type":"boolean","char":"i","description":"Customize app template options via interactive prompt","allowNo":false}},"args":[{"name":"name","description":"Name of the project","required":true}]},"app:list":{"id":"app:list","description":"List apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"app:publish":{"id":"app:publish","description":"Publish apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"configPath":{"name":"configPath","type":"option","description":"Path to dx.yml","multiple":false},"accessToken":{"name":"accessToken","type":"option","description":"Access token for publishing","multiple":false},"skipExisting":{"name":"skipExisting","type":"boolean","description":"Do not update content on KUBE if version already exists","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"option","description":"Version of modules to publish","multiple":false}},"args":[]},"config":{"id":"config","description":"Show config file.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:create":{"id":"halo:create","description":"Create HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"displayName"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo":{"id":"halo","description":"Show HALO profile.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:recover":{"id":"halo:recover","description":"Recover HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"seedphrase"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"kube:deploy":{"id":"kube:deploy","description":"Deploy KUBE.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"hostname":{"name":"hostname","type":"option","description":"Hostname","required":true,"multiple":false},"provider":{"name":"provider","type":"option","description":"Cloud Provider","multiple":false,"default":"digitalocean"},"accessToken":{"name":"accessToken","type":"option","description":"Access token for seeding admin identity","multiple":false},"dev":{"name":"dev","type":"boolean","description":"Deploy latest version from dev channel","allowNo":false}},"args":[]},"reset":{"id":"reset","description":"Reset all data.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"shell":{"id":"shell","description":"Interactive shell.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:create":{"id":"space:create","description":"Create space.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"name"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space":{"id":"space","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:invite":{"id":"space:invite","description":"Create space invitation.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[{"name":"key"}]},"space:join":{"id":"space:join","description":"Join space invitation","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"invitation":{"name":"invitation","type":"option","description":"Invitation code","multiple":false},"secret":{"name":"secret","type":"option","description":"Invitation secret","multiple":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:list":{"id":"space:list","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:members":{"id":"space:members","description":"List space members.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[{"name":"key"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}}}}
1
+ {"version":"0.1.22","commands":{"app:create":{"id":"app:create","description":"Create a DXOS project.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"tag":{"name":"tag","type":"option","description":"Git tag or branch of the DXOS repo to checkout.","multiple":false},"template":{"name":"template","type":"option","char":"t","description":"Template to use when creating the project.","multiple":false,"options":["hello","bare","tasks"],"default":"hello"},"interactive":{"name":"interactive","type":"boolean","char":"i","description":"Customize app template options via interactive prompt","allowNo":false}},"args":[{"name":"name","description":"Name of the project","required":true}]},"app:list":{"id":"app:list","description":"List apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"app:publish":{"id":"app:publish","description":"Publish apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"configPath":{"name":"configPath","type":"option","description":"Path to dx.yml","multiple":false},"accessToken":{"name":"accessToken","type":"option","description":"Access token for publishing","multiple":false},"skipExisting":{"name":"skipExisting","type":"boolean","description":"Do not update content on KUBE if version already exists","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"option","description":"Version of modules to publish","multiple":false}},"args":[]},"config":{"id":"config","description":"Show config file.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:create":{"id":"halo:create","description":"Create HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"displayName"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo":{"id":"halo","description":"Show HALO profile.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:recover":{"id":"halo:recover","description":"Recover HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"seedphrase"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"kube:deploy":{"id":"kube:deploy","description":"Deploy KUBE.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"hostname":{"name":"hostname","type":"option","description":"Hostname","required":true,"multiple":false},"provider":{"name":"provider","type":"option","description":"Cloud Provider","multiple":false,"default":"digitalocean"},"accessToken":{"name":"accessToken","type":"option","description":"Access token for seeding admin identity","multiple":false},"dev":{"name":"dev","type":"boolean","description":"Deploy latest version from dev channel","allowNo":false}},"args":[]},"reset":{"id":"reset","description":"Reset all data.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"shell":{"id":"shell","description":"Interactive shell.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:create":{"id":"space:create","description":"Create space.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"name"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space":{"id":"space","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:invite":{"id":"space:invite","description":"Create space invitation.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[{"name":"key"}]},"space:join":{"id":"space:join","description":"Join space invitation","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"invitation":{"name":"invitation","type":"option","description":"Invitation code","multiple":false},"secret":{"name":"secret","type":"option","description":"Invitation secret","multiple":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:list":{"id":"space:list","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:members":{"id":"space:members","description":"List space members.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[{"name":"key"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"tunnel:list":{"id":"tunnel:list","description":"List tunnels.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"tunnel:set":{"id":"tunnel:set","description":"Enable or disable tunnel.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"app":{"name":"app","type":"option","description":"Application name","required":true,"multiple":false},"enabled":{"name":"enabled","type":"boolean","description":"Enable tunnel.","allowNo":false},"disabled":{"name":"disabled","type":"boolean","description":"Disable tunnel.","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "DXOS CLI",
5
5
  "keywords": [
6
6
  "dxos",
@@ -45,18 +45,18 @@
45
45
  "tempy": "^1.0.1",
46
46
  "uuid": "^8.3.2",
47
47
  "ws": "^7.4.4",
48
- "@dxos/async": "0.1.20",
49
- "@dxos/client": "0.1.20",
50
- "@dxos/client-services": "0.1.20",
51
- "@dxos/config": "0.1.20",
52
- "@dxos/debug": "0.1.20",
53
- "@dxos/keys": "0.1.20",
54
- "@dxos/log": "0.1.20",
55
- "@dxos/plate": "0.1.20",
56
- "@dxos/protocols": "0.1.20",
57
- "@dxos/rpc": "0.1.20",
58
- "@dxos/sentry": "0.1.20",
59
- "@dxos/telemetry": "0.1.20"
48
+ "@dxos/async": "0.1.22",
49
+ "@dxos/client": "0.1.22",
50
+ "@dxos/client-services": "0.1.22",
51
+ "@dxos/config": "0.1.22",
52
+ "@dxos/debug": "0.1.22",
53
+ "@dxos/keys": "0.1.22",
54
+ "@dxos/log": "0.1.22",
55
+ "@dxos/plate": "0.1.22",
56
+ "@dxos/protocols": "0.1.22",
57
+ "@dxos/rpc": "0.1.22",
58
+ "@dxos/sentry": "0.1.22",
59
+ "@dxos/telemetry": "0.1.22"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@oclif/test": "^2.1.1",