@tinycloud/cli 0.7.0-beta.10 → 0.7.0-beta.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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15550,7 +15550,7 @@ function registerAccountCommand(program2) {
|
|
|
15550
15550
|
try {
|
|
15551
15551
|
const options = _options;
|
|
15552
15552
|
const node = await authenticatedNode(cmd);
|
|
15553
|
-
const result = options.live ? await node.account.applications.list() : await node.account.
|
|
15553
|
+
const result = options.live ? await node.account.applications.list() : await node.account.applications.list({ preferIndex: true });
|
|
15554
15554
|
assertOk(result);
|
|
15555
15555
|
const payload = { applications: result.data, count: result.data.length };
|
|
15556
15556
|
if (shouldOutputJson()) {
|
|
@@ -15580,7 +15580,7 @@ function registerAccountCommand(program2) {
|
|
|
15580
15580
|
spaces.command("list").description("List spaces registered under account/spaces").option("--live", "Read canonical account KV records instead of the SQLite index").action(async (options, cmd) => {
|
|
15581
15581
|
try {
|
|
15582
15582
|
const node = await authenticatedNode(cmd);
|
|
15583
|
-
const result = options.live ? await node.account.spaces.list() : await node.account.
|
|
15583
|
+
const result = options.live ? await node.account.spaces.list() : await node.account.spaces.list({ preferIndex: true });
|
|
15584
15584
|
assertOk(result);
|
|
15585
15585
|
const payload = { spaces: result.data.map(formatSpace), count: result.data.length };
|
|
15586
15586
|
if (shouldOutputJson()) {
|
|
@@ -15693,7 +15693,7 @@ function registerAccountCommand(program2) {
|
|
|
15693
15693
|
}
|
|
15694
15694
|
const node = await authenticatedNode(cmd);
|
|
15695
15695
|
const direction = options.granted ? "granted" : options.received ? "received" : "all";
|
|
15696
|
-
const result = options.live ? await node.account.delegations.list({ direction, space: options.space }) : await node.account.
|
|
15696
|
+
const result = options.live ? await node.account.delegations.list({ direction, space: options.space }) : await node.account.delegations.list({ direction, space: options.space, preferIndex: true });
|
|
15697
15697
|
assertOk(result);
|
|
15698
15698
|
const payload = { delegations: result.data.map(formatDelegation2), count: result.data.length };
|
|
15699
15699
|
if (shouldOutputJson()) {
|