@dxos/cli 0.1.45 → 0.1.46-next.412561
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 +64 -29
- package/dist/src/base-command.d.ts +1 -1
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +32 -21
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/app/app.test.js +14 -6
- package/dist/src/commands/app/app.test.js.map +1 -1
- package/dist/src/commands/app/create.d.ts +1 -1
- package/dist/src/commands/app/open.d.ts +1 -1
- package/dist/src/commands/app/publish.d.ts +1 -1
- package/dist/src/commands/daemon/run.d.ts +1 -1
- package/dist/src/commands/halo/credential/list.d.ts +1 -1
- package/dist/src/commands/halo/join.d.ts +1 -1
- package/dist/src/commands/halo/share.d.ts +1 -1
- package/dist/src/commands/kube/deploy.d.ts +1 -1
- package/dist/src/commands/space/create.js +2 -5
- package/dist/src/commands/space/create.js.map +1 -1
- package/dist/src/commands/space/join.d.ts +1 -1
- package/dist/src/commands/space/list.d.ts +1 -1
- package/dist/src/commands/space/members.d.ts +1 -1
- package/dist/src/commands/space/new-epoch.d.ts +23 -0
- package/dist/src/commands/space/new-epoch.d.ts.map +1 -0
- package/dist/src/commands/space/new-epoch.js +40 -0
- package/dist/src/commands/space/new-epoch.js.map +1 -0
- package/dist/src/commands/tunnel/set.d.ts +1 -1
- package/dist/src/util/exec.d.ts +1 -0
- package/dist/src/util/exec.d.ts.map +1 -1
- package/dist/src/util/exec.js +2 -2
- package/dist/src/util/exec.js.map +1 -1
- package/dist/src/util/telemetryrc.json +2 -2
- package/dist/src/util/test-util.d.ts.map +1 -1
- package/dist/src/util/test-util.js +3 -5
- package/dist/src/util/test-util.js.map +1 -1
- package/oclif.manifest.json +211 -1
- package/package.json +20 -25
- package/dist/src/hooks/init/config.d.ts +0 -4
- package/dist/src/hooks/init/config.d.ts.map +0 -1
- package/dist/src/hooks/init/config.js +0 -10
- package/dist/src/hooks/init/config.js.map +0 -1
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Copyright 2022 DXOS.org
|
|
4
4
|
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const faker_1 = require("@faker-js/faker");
|
|
9
7
|
const core_1 = require("@oclif/core");
|
|
10
|
-
const faker_1 = __importDefault(require("faker"));
|
|
11
8
|
const base_command_1 = require("../../base-command");
|
|
12
9
|
class Create extends base_command_1.BaseCommand {
|
|
13
10
|
async run() {
|
|
@@ -15,7 +12,7 @@ class Create extends base_command_1.BaseCommand {
|
|
|
15
12
|
let { name } = args;
|
|
16
13
|
if (!name) {
|
|
17
14
|
// TODO(burdon): Move to v7: https://v6.fakerjs.dev/migration-guide-v5
|
|
18
|
-
name = `${faker_1.
|
|
15
|
+
name = `${faker_1.faker.commerce.productName().toLowerCase().replace(/\s/g, '-')}`;
|
|
19
16
|
}
|
|
20
17
|
return await this.execWithClient(async (client) => {
|
|
21
18
|
const space = await client.createSpace();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/space/create.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/space/create.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,2CAAwC;AACxC,sCAAmC;AAInC,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,0BAAW;IAK7C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,IAAI,EAAE;YACT,sEAAsE;YACtE,IAAI,GAAG,GAAG,aAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;SAC5E;QAED,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;YACzC,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;YAC7B,MAAM,IAAI,GAAG;gBACX,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE;gBACtB,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,IAAI;aAC5B,CAAC;YAEF,IAAI,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;;AAvBe,qBAAc,GAAG,IAAI,CAAC;AACtB,kBAAW,GAAG,eAAe,CAAC;AAC9B,WAAI,GAAG,EAAE,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC;kBAH5B,MAAM"}
|
|
@@ -5,7 +5,7 @@ export default class Join extends BaseCommand {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
invitation: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
7
|
secret: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string
|
|
8
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
9
|
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
10
|
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
11
|
};
|
|
@@ -11,7 +11,7 @@ export default class List extends BaseCommand {
|
|
|
11
11
|
extended: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
12
12
|
'no-truncate': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
13
13
|
'no-header': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
14
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string
|
|
14
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
15
|
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
16
|
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
17
|
};
|
|
@@ -11,7 +11,7 @@ export default class Members extends BaseCommand {
|
|
|
11
11
|
extended: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
12
12
|
'no-truncate': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
13
13
|
'no-header': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
14
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string
|
|
14
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
15
|
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
16
|
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
17
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class NewEpoch extends BaseCommand {
|
|
3
|
+
static enableJsonFlag: boolean;
|
|
4
|
+
static description: string;
|
|
5
|
+
static flags: {
|
|
6
|
+
columns: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
sort: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
|
+
filter: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
|
+
csv: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
10
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
11
|
+
extended: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
12
|
+
'no-truncate': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
13
|
+
'no-header': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
14
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
+
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
|
+
};
|
|
18
|
+
static args: {
|
|
19
|
+
key: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
|
|
20
|
+
};
|
|
21
|
+
run(): Promise<any>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=new-epoch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-epoch.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/new-epoch.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;IAC/C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAuB;IAClD,OAAgB,KAAK;;;;;;;;;;;;MAGnB;IAEF,OAAgB,IAAI;;MAAmE;IAEjF,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAqB1B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 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 NewEpoch extends base_command_1.BaseCommand {
|
|
14
|
+
async run() {
|
|
15
|
+
const { args } = await this.parse(NewEpoch);
|
|
16
|
+
let { key } = args;
|
|
17
|
+
return await this.execWithClient(async (client) => {
|
|
18
|
+
const spaces = client.spaces.get();
|
|
19
|
+
if (!key) {
|
|
20
|
+
key = await (0, util_1.selectSpace)(spaces);
|
|
21
|
+
}
|
|
22
|
+
(0, node_assert_1.default)(key);
|
|
23
|
+
const space = spaces.find((space) => space.key.toHex().startsWith(key));
|
|
24
|
+
if (!space) {
|
|
25
|
+
this.log('Invalid key');
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
await space.internal.createEpoch();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
NewEpoch.enableJsonFlag = true;
|
|
33
|
+
NewEpoch.description = 'Create new epoch.';
|
|
34
|
+
NewEpoch.flags = {
|
|
35
|
+
...base_command_1.BaseCommand.flags,
|
|
36
|
+
...core_1.ux.table.flags(),
|
|
37
|
+
};
|
|
38
|
+
NewEpoch.args = { key: core_1.Args.string({ description: 'Space key head in hex.' }) };
|
|
39
|
+
exports.default = NewEpoch;
|
|
40
|
+
//# sourceMappingURL=new-epoch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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CAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC,EAAE,CAAC;kBARpE,QAAQ"}
|
|
@@ -6,7 +6,7 @@ export default class Set extends BaseCommand {
|
|
|
6
6
|
app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
7
|
enabled: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
disabled: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string
|
|
9
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
10
|
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
11
|
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
12
|
};
|
package/dist/src/util/exec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../src/util/exec.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../src/util/exec.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAGF,eAAO,MAAM,IAAI,YAAa,MAAM,YAAY,QAAQ,WAAW,CAAC,KAAG,QAAQ,MAAM,CA8BpF,CAAC"}
|
package/dist/src/util/exec.js
CHANGED
|
@@ -7,14 +7,14 @@ exports.exec = void 0;
|
|
|
7
7
|
const node_child_process_1 = require("node:child_process");
|
|
8
8
|
// TODO(zhenyasav): resolve with executors/.../exec.ts
|
|
9
9
|
const exec = (command, options) => {
|
|
10
|
-
const { verbose, cwd } = { verbose: false, cwd: process.cwd(), ...options };
|
|
10
|
+
const { verbose, cwd, shell } = { verbose: false, cwd: process.cwd(), shell: true, ...options };
|
|
11
11
|
if (verbose) {
|
|
12
12
|
console.log(command);
|
|
13
13
|
}
|
|
14
14
|
const [first, ...rest] = command.split(' ');
|
|
15
15
|
return new Promise((resolve, reject) => {
|
|
16
16
|
const subprocess = (0, node_child_process_1.spawn)(first, rest, {
|
|
17
|
-
shell
|
|
17
|
+
shell,
|
|
18
18
|
cwd,
|
|
19
19
|
});
|
|
20
20
|
const stdout = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../src/util/exec.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,2DAA2C;
|
|
1
|
+
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../src/util/exec.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,2DAA2C;AAQ3C,sDAAsD;AAC/C,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,OAA8B,EAAmB,EAAE;IACvF,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;IAChG,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACtB;IACD,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EA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
+
"DX_RELEASE": "@dxos/cli@0.1.46-next.0412561",
|
|
4
4
|
"SENTRY_DESTINATION": "https://2647916221e643869965e78469479aa4@o4504012000067584.ingest.sentry.io/4504012027265029",
|
|
5
5
|
"TELEMETRY_API_KEY": "B00QG6PtJJrJ0VVFe0H5a6bcUUShKyZM",
|
|
6
6
|
"IPDATA_API_KEY": "ccc5f0cd66dd34a7c31c2ddc61c2bbca2db73892a993982bb3a5f0e2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-util.d.ts","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-util.d.ts","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,YAAmB,MAAM,OAAO,MAAM,oBAK5D,CAAC"}
|
|
@@ -7,15 +7,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.runCommand = void 0;
|
|
10
|
+
const node_fs_1 = require("node:fs");
|
|
10
11
|
const node_path_1 = __importDefault(require("node:path"));
|
|
11
12
|
const exec_1 = require("./exec");
|
|
12
13
|
const runCommand = async (command, cwd) => {
|
|
13
14
|
const bin = node_path_1.default.join(__dirname, '../../bin/run');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
cd ${cwd} &&
|
|
17
|
-
${bin} ${command}
|
|
18
|
-
`);
|
|
15
|
+
(0, node_fs_1.mkdirSync)(cwd, { recursive: true });
|
|
16
|
+
return await (0, exec_1.exec)(`${bin} ${command}`, { cwd, shell: false });
|
|
19
17
|
};
|
|
20
18
|
exports.runCommand = runCommand;
|
|
21
19
|
//# sourceMappingURL=test-util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-util.js","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,0DAA6B;AAE7B,iCAA8B;AAEvB,MAAM,UAAU,GAAG,KAAK,EAAE,OAAe,EAAE,GAAW,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAG,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"test-util.js","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,qCAAoC;AACpC,0DAA6B;AAE7B,iCAA8B;AAEvB,MAAM,UAAU,GAAG,KAAK,EAAE,OAAe,EAAE,GAAW,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAG,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAClD,IAAA,mBAAS,EAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAEpC,OAAO,MAAM,IAAA,WAAI,EAAC,GAAG,GAAG,IAAI,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;AAChE,CAAC,CAAC;AALW,QAAA,UAAU,cAKrB"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.46-next.0412561",
|
|
3
3
|
"commands": {
|
|
4
4
|
"app:create": {
|
|
5
5
|
"id": "app:create",
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"type": "option",
|
|
23
23
|
"description": "Specify config file",
|
|
24
24
|
"multiple": false,
|
|
25
|
+
"dependsOn": [
|
|
26
|
+
"profile"
|
|
27
|
+
],
|
|
25
28
|
"aliases": [
|
|
26
29
|
"c"
|
|
27
30
|
]
|
|
@@ -106,6 +109,9 @@
|
|
|
106
109
|
"type": "option",
|
|
107
110
|
"description": "Specify config file",
|
|
108
111
|
"multiple": false,
|
|
112
|
+
"dependsOn": [
|
|
113
|
+
"profile"
|
|
114
|
+
],
|
|
109
115
|
"aliases": [
|
|
110
116
|
"c"
|
|
111
117
|
]
|
|
@@ -151,6 +157,9 @@
|
|
|
151
157
|
"type": "option",
|
|
152
158
|
"description": "Specify config file",
|
|
153
159
|
"multiple": false,
|
|
160
|
+
"dependsOn": [
|
|
161
|
+
"profile"
|
|
162
|
+
],
|
|
154
163
|
"aliases": [
|
|
155
164
|
"c"
|
|
156
165
|
]
|
|
@@ -215,6 +224,9 @@
|
|
|
215
224
|
"type": "option",
|
|
216
225
|
"description": "Specify config file",
|
|
217
226
|
"multiple": false,
|
|
227
|
+
"dependsOn": [
|
|
228
|
+
"profile"
|
|
229
|
+
],
|
|
218
230
|
"aliases": [
|
|
219
231
|
"c"
|
|
220
232
|
]
|
|
@@ -290,6 +302,9 @@
|
|
|
290
302
|
"type": "option",
|
|
291
303
|
"description": "Specify config file",
|
|
292
304
|
"multiple": false,
|
|
305
|
+
"dependsOn": [
|
|
306
|
+
"profile"
|
|
307
|
+
],
|
|
293
308
|
"aliases": [
|
|
294
309
|
"c"
|
|
295
310
|
]
|
|
@@ -335,6 +350,9 @@
|
|
|
335
350
|
"type": "option",
|
|
336
351
|
"description": "Specify config file",
|
|
337
352
|
"multiple": false,
|
|
353
|
+
"dependsOn": [
|
|
354
|
+
"profile"
|
|
355
|
+
],
|
|
338
356
|
"aliases": [
|
|
339
357
|
"c"
|
|
340
358
|
]
|
|
@@ -380,6 +398,9 @@
|
|
|
380
398
|
"type": "option",
|
|
381
399
|
"description": "Specify config file",
|
|
382
400
|
"multiple": false,
|
|
401
|
+
"dependsOn": [
|
|
402
|
+
"profile"
|
|
403
|
+
],
|
|
383
404
|
"aliases": [
|
|
384
405
|
"c"
|
|
385
406
|
]
|
|
@@ -425,6 +446,9 @@
|
|
|
425
446
|
"type": "option",
|
|
426
447
|
"description": "Specify config file",
|
|
427
448
|
"multiple": false,
|
|
449
|
+
"dependsOn": [
|
|
450
|
+
"profile"
|
|
451
|
+
],
|
|
428
452
|
"aliases": [
|
|
429
453
|
"c"
|
|
430
454
|
]
|
|
@@ -477,6 +501,9 @@
|
|
|
477
501
|
"type": "option",
|
|
478
502
|
"description": "Specify config file",
|
|
479
503
|
"multiple": false,
|
|
504
|
+
"dependsOn": [
|
|
505
|
+
"profile"
|
|
506
|
+
],
|
|
480
507
|
"aliases": [
|
|
481
508
|
"c"
|
|
482
509
|
]
|
|
@@ -522,6 +549,9 @@
|
|
|
522
549
|
"type": "option",
|
|
523
550
|
"description": "Specify config file",
|
|
524
551
|
"multiple": false,
|
|
552
|
+
"dependsOn": [
|
|
553
|
+
"profile"
|
|
554
|
+
],
|
|
525
555
|
"aliases": [
|
|
526
556
|
"c"
|
|
527
557
|
]
|
|
@@ -567,6 +597,9 @@
|
|
|
567
597
|
"type": "option",
|
|
568
598
|
"description": "Specify config file",
|
|
569
599
|
"multiple": false,
|
|
600
|
+
"dependsOn": [
|
|
601
|
+
"profile"
|
|
602
|
+
],
|
|
570
603
|
"aliases": [
|
|
571
604
|
"c"
|
|
572
605
|
]
|
|
@@ -617,6 +650,9 @@
|
|
|
617
650
|
"type": "option",
|
|
618
651
|
"description": "Specify config file",
|
|
619
652
|
"multiple": false,
|
|
653
|
+
"dependsOn": [
|
|
654
|
+
"profile"
|
|
655
|
+
],
|
|
620
656
|
"aliases": [
|
|
621
657
|
"c"
|
|
622
658
|
]
|
|
@@ -662,6 +698,9 @@
|
|
|
662
698
|
"type": "option",
|
|
663
699
|
"description": "Specify config file",
|
|
664
700
|
"multiple": false,
|
|
701
|
+
"dependsOn": [
|
|
702
|
+
"profile"
|
|
703
|
+
],
|
|
665
704
|
"aliases": [
|
|
666
705
|
"c"
|
|
667
706
|
]
|
|
@@ -713,6 +752,9 @@
|
|
|
713
752
|
"type": "option",
|
|
714
753
|
"description": "Specify config file",
|
|
715
754
|
"multiple": false,
|
|
755
|
+
"dependsOn": [
|
|
756
|
+
"profile"
|
|
757
|
+
],
|
|
716
758
|
"aliases": [
|
|
717
759
|
"c"
|
|
718
760
|
]
|
|
@@ -764,6 +806,9 @@
|
|
|
764
806
|
"type": "option",
|
|
765
807
|
"description": "Specify config file",
|
|
766
808
|
"multiple": false,
|
|
809
|
+
"dependsOn": [
|
|
810
|
+
"profile"
|
|
811
|
+
],
|
|
767
812
|
"aliases": [
|
|
768
813
|
"c"
|
|
769
814
|
]
|
|
@@ -809,6 +854,9 @@
|
|
|
809
854
|
"type": "option",
|
|
810
855
|
"description": "Specify config file",
|
|
811
856
|
"multiple": false,
|
|
857
|
+
"dependsOn": [
|
|
858
|
+
"profile"
|
|
859
|
+
],
|
|
812
860
|
"aliases": [
|
|
813
861
|
"c"
|
|
814
862
|
]
|
|
@@ -880,6 +928,9 @@
|
|
|
880
928
|
"type": "option",
|
|
881
929
|
"description": "Specify config file",
|
|
882
930
|
"multiple": false,
|
|
931
|
+
"dependsOn": [
|
|
932
|
+
"profile"
|
|
933
|
+
],
|
|
883
934
|
"aliases": [
|
|
884
935
|
"c"
|
|
885
936
|
]
|
|
@@ -925,6 +976,9 @@
|
|
|
925
976
|
"type": "option",
|
|
926
977
|
"description": "Specify config file",
|
|
927
978
|
"multiple": false,
|
|
979
|
+
"dependsOn": [
|
|
980
|
+
"profile"
|
|
981
|
+
],
|
|
928
982
|
"aliases": [
|
|
929
983
|
"c"
|
|
930
984
|
]
|
|
@@ -970,6 +1024,9 @@
|
|
|
970
1024
|
"type": "option",
|
|
971
1025
|
"description": "Specify config file",
|
|
972
1026
|
"multiple": false,
|
|
1027
|
+
"dependsOn": [
|
|
1028
|
+
"profile"
|
|
1029
|
+
],
|
|
973
1030
|
"aliases": [
|
|
974
1031
|
"c"
|
|
975
1032
|
]
|
|
@@ -1019,6 +1076,9 @@
|
|
|
1019
1076
|
"type": "option",
|
|
1020
1077
|
"description": "Specify config file",
|
|
1021
1078
|
"multiple": false,
|
|
1079
|
+
"dependsOn": [
|
|
1080
|
+
"profile"
|
|
1081
|
+
],
|
|
1022
1082
|
"aliases": [
|
|
1023
1083
|
"c"
|
|
1024
1084
|
]
|
|
@@ -1064,6 +1124,9 @@
|
|
|
1064
1124
|
"type": "option",
|
|
1065
1125
|
"description": "Specify config file",
|
|
1066
1126
|
"multiple": false,
|
|
1127
|
+
"dependsOn": [
|
|
1128
|
+
"profile"
|
|
1129
|
+
],
|
|
1067
1130
|
"aliases": [
|
|
1068
1131
|
"c"
|
|
1069
1132
|
]
|
|
@@ -1114,6 +1177,9 @@
|
|
|
1114
1177
|
"type": "option",
|
|
1115
1178
|
"description": "Specify config file",
|
|
1116
1179
|
"multiple": false,
|
|
1180
|
+
"dependsOn": [
|
|
1181
|
+
"profile"
|
|
1182
|
+
],
|
|
1117
1183
|
"aliases": [
|
|
1118
1184
|
"c"
|
|
1119
1185
|
]
|
|
@@ -1171,6 +1237,9 @@
|
|
|
1171
1237
|
"type": "option",
|
|
1172
1238
|
"description": "Specify config file",
|
|
1173
1239
|
"multiple": false,
|
|
1240
|
+
"dependsOn": [
|
|
1241
|
+
"profile"
|
|
1242
|
+
],
|
|
1174
1243
|
"aliases": [
|
|
1175
1244
|
"c"
|
|
1176
1245
|
]
|
|
@@ -1289,6 +1358,135 @@
|
|
|
1289
1358
|
"type": "option",
|
|
1290
1359
|
"description": "Specify config file",
|
|
1291
1360
|
"multiple": false,
|
|
1361
|
+
"dependsOn": [
|
|
1362
|
+
"profile"
|
|
1363
|
+
],
|
|
1364
|
+
"aliases": [
|
|
1365
|
+
"c"
|
|
1366
|
+
]
|
|
1367
|
+
},
|
|
1368
|
+
"timeout": {
|
|
1369
|
+
"name": "timeout",
|
|
1370
|
+
"type": "option",
|
|
1371
|
+
"description": "Timeout in seconds",
|
|
1372
|
+
"multiple": false,
|
|
1373
|
+
"default": 30,
|
|
1374
|
+
"aliases": [
|
|
1375
|
+
"t"
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1378
|
+
"profile": {
|
|
1379
|
+
"name": "profile",
|
|
1380
|
+
"type": "option",
|
|
1381
|
+
"description": "DXOS profile name, each profile runs separate daemon with isolated environment.",
|
|
1382
|
+
"multiple": false,
|
|
1383
|
+
"default": "dxos-default"
|
|
1384
|
+
},
|
|
1385
|
+
"columns": {
|
|
1386
|
+
"name": "columns",
|
|
1387
|
+
"type": "option",
|
|
1388
|
+
"description": "only show provided columns (comma-separated)",
|
|
1389
|
+
"multiple": false,
|
|
1390
|
+
"exclusive": [
|
|
1391
|
+
"extended"
|
|
1392
|
+
]
|
|
1393
|
+
},
|
|
1394
|
+
"sort": {
|
|
1395
|
+
"name": "sort",
|
|
1396
|
+
"type": "option",
|
|
1397
|
+
"description": "property to sort by (prepend '-' for descending)",
|
|
1398
|
+
"multiple": false
|
|
1399
|
+
},
|
|
1400
|
+
"filter": {
|
|
1401
|
+
"name": "filter",
|
|
1402
|
+
"type": "option",
|
|
1403
|
+
"description": "filter property by partial string matching, ex: name=foo",
|
|
1404
|
+
"multiple": false
|
|
1405
|
+
},
|
|
1406
|
+
"csv": {
|
|
1407
|
+
"name": "csv",
|
|
1408
|
+
"type": "boolean",
|
|
1409
|
+
"description": "output is csv format [alias: --output=csv]",
|
|
1410
|
+
"allowNo": false,
|
|
1411
|
+
"exclusive": [
|
|
1412
|
+
"no-truncate"
|
|
1413
|
+
]
|
|
1414
|
+
},
|
|
1415
|
+
"output": {
|
|
1416
|
+
"name": "output",
|
|
1417
|
+
"type": "option",
|
|
1418
|
+
"description": "output in a more machine friendly format",
|
|
1419
|
+
"multiple": false,
|
|
1420
|
+
"options": [
|
|
1421
|
+
"csv",
|
|
1422
|
+
"json",
|
|
1423
|
+
"yaml"
|
|
1424
|
+
],
|
|
1425
|
+
"exclusive": [
|
|
1426
|
+
"no-truncate",
|
|
1427
|
+
"csv"
|
|
1428
|
+
]
|
|
1429
|
+
},
|
|
1430
|
+
"extended": {
|
|
1431
|
+
"name": "extended",
|
|
1432
|
+
"type": "boolean",
|
|
1433
|
+
"char": "x",
|
|
1434
|
+
"description": "show extra columns",
|
|
1435
|
+
"allowNo": false,
|
|
1436
|
+
"exclusive": [
|
|
1437
|
+
"columns"
|
|
1438
|
+
]
|
|
1439
|
+
},
|
|
1440
|
+
"no-truncate": {
|
|
1441
|
+
"name": "no-truncate",
|
|
1442
|
+
"type": "boolean",
|
|
1443
|
+
"description": "do not truncate output to fit screen",
|
|
1444
|
+
"allowNo": false,
|
|
1445
|
+
"exclusive": [
|
|
1446
|
+
"csv"
|
|
1447
|
+
]
|
|
1448
|
+
},
|
|
1449
|
+
"no-header": {
|
|
1450
|
+
"name": "no-header",
|
|
1451
|
+
"type": "boolean",
|
|
1452
|
+
"description": "hide table header from output",
|
|
1453
|
+
"allowNo": false,
|
|
1454
|
+
"exclusive": [
|
|
1455
|
+
"csv"
|
|
1456
|
+
]
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"args": {
|
|
1460
|
+
"key": {
|
|
1461
|
+
"name": "key",
|
|
1462
|
+
"description": "Space key head in hex."
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"space:new-epoch": {
|
|
1467
|
+
"id": "space:new-epoch",
|
|
1468
|
+
"description": "Create new epoch.",
|
|
1469
|
+
"strict": true,
|
|
1470
|
+
"pluginName": "@dxos/cli",
|
|
1471
|
+
"pluginAlias": "@dxos/cli",
|
|
1472
|
+
"pluginType": "core",
|
|
1473
|
+
"aliases": [],
|
|
1474
|
+
"flags": {
|
|
1475
|
+
"json": {
|
|
1476
|
+
"name": "json",
|
|
1477
|
+
"type": "boolean",
|
|
1478
|
+
"description": "Format output as json.",
|
|
1479
|
+
"helpGroup": "GLOBAL",
|
|
1480
|
+
"allowNo": false
|
|
1481
|
+
},
|
|
1482
|
+
"config": {
|
|
1483
|
+
"name": "config",
|
|
1484
|
+
"type": "option",
|
|
1485
|
+
"description": "Specify config file",
|
|
1486
|
+
"multiple": false,
|
|
1487
|
+
"dependsOn": [
|
|
1488
|
+
"profile"
|
|
1489
|
+
],
|
|
1292
1490
|
"aliases": [
|
|
1293
1491
|
"c"
|
|
1294
1492
|
]
|
|
@@ -1412,6 +1610,9 @@
|
|
|
1412
1610
|
"type": "option",
|
|
1413
1611
|
"description": "Specify config file",
|
|
1414
1612
|
"multiple": false,
|
|
1613
|
+
"dependsOn": [
|
|
1614
|
+
"profile"
|
|
1615
|
+
],
|
|
1415
1616
|
"aliases": [
|
|
1416
1617
|
"c"
|
|
1417
1618
|
]
|
|
@@ -1457,6 +1658,9 @@
|
|
|
1457
1658
|
"type": "option",
|
|
1458
1659
|
"description": "Specify config file",
|
|
1459
1660
|
"multiple": false,
|
|
1661
|
+
"dependsOn": [
|
|
1662
|
+
"profile"
|
|
1663
|
+
],
|
|
1460
1664
|
"aliases": [
|
|
1461
1665
|
"c"
|
|
1462
1666
|
]
|
|
@@ -1521,6 +1725,9 @@
|
|
|
1521
1725
|
"type": "option",
|
|
1522
1726
|
"description": "Specify config file",
|
|
1523
1727
|
"multiple": false,
|
|
1728
|
+
"dependsOn": [
|
|
1729
|
+
"profile"
|
|
1730
|
+
],
|
|
1524
1731
|
"aliases": [
|
|
1525
1732
|
"c"
|
|
1526
1733
|
]
|
|
@@ -1572,6 +1779,9 @@
|
|
|
1572
1779
|
"type": "option",
|
|
1573
1780
|
"description": "Specify config file",
|
|
1574
1781
|
"multiple": false,
|
|
1782
|
+
"dependsOn": [
|
|
1783
|
+
"profile"
|
|
1784
|
+
],
|
|
1575
1785
|
"aliases": [
|
|
1576
1786
|
"c"
|
|
1577
1787
|
]
|