sandbox 3.0.0-beta.7 → 3.0.0-beta.9
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.
|
@@ -7427,7 +7427,7 @@ const scope = {
|
|
|
7427
7427
|
|
|
7428
7428
|
//#endregion
|
|
7429
7429
|
//#region package.json
|
|
7430
|
-
var version = "3.0.0-beta.
|
|
7430
|
+
var version = "3.0.0-beta.9";
|
|
7431
7431
|
|
|
7432
7432
|
//#endregion
|
|
7433
7433
|
//#region src/error.ts
|
|
@@ -11964,8 +11964,17 @@ const list = import_cjs$12.command({
|
|
|
11964
11964
|
}),
|
|
11965
11965
|
sortBy: import_cjs$12.option({
|
|
11966
11966
|
long: "sort-by",
|
|
11967
|
-
description: "Sort sandboxes by field. Options: createdAt (default), name",
|
|
11968
|
-
type: import_cjs$12.optional(import_cjs$12.oneOf([
|
|
11967
|
+
description: "Sort sandboxes by field. Options: createdAt (default), name, statusUpdatedAt",
|
|
11968
|
+
type: import_cjs$12.optional(import_cjs$12.oneOf([
|
|
11969
|
+
"createdAt",
|
|
11970
|
+
"name",
|
|
11971
|
+
"statusUpdatedAt"
|
|
11972
|
+
]))
|
|
11973
|
+
}),
|
|
11974
|
+
sortOrder: import_cjs$12.option({
|
|
11975
|
+
long: "sort-order",
|
|
11976
|
+
description: "Sort order. Options: asc, desc (default)",
|
|
11977
|
+
type: import_cjs$12.optional(import_cjs$12.oneOf(["asc", "desc"]))
|
|
11969
11978
|
}),
|
|
11970
11979
|
tags: import_cjs$12.multioption({
|
|
11971
11980
|
long: "tag",
|
|
@@ -11974,7 +11983,7 @@ const list = import_cjs$12.command({
|
|
|
11974
11983
|
}),
|
|
11975
11984
|
scope
|
|
11976
11985
|
},
|
|
11977
|
-
async handler({ scope: { token: token$1, team: team$1, project: project$1 }, all, namePrefix, sortBy, tags }) {
|
|
11986
|
+
async handler({ scope: { token: token$1, team: team$1, project: project$1 }, all, namePrefix, sortBy, sortOrder, tags }) {
|
|
11978
11987
|
const sandboxes = await (async () => {
|
|
11979
11988
|
try {
|
|
11980
11989
|
var _usingCtx$1 = _usingCtx();
|
|
@@ -11983,9 +11992,10 @@ const list = import_cjs$12.command({
|
|
|
11983
11992
|
token: token$1,
|
|
11984
11993
|
teamId: team$1,
|
|
11985
11994
|
projectId: project$1,
|
|
11986
|
-
limit:
|
|
11995
|
+
limit: 50,
|
|
11987
11996
|
...namePrefix && { namePrefix },
|
|
11988
11997
|
...sortBy && { sortBy },
|
|
11998
|
+
...sortOrder && { sortOrder },
|
|
11989
11999
|
...Object.keys(tags).length > 0 && { tags }
|
|
11990
12000
|
});
|
|
11991
12001
|
if (!all) sandboxes$1 = sandboxes$1.filter((x) => x.status === "running");
|
|
@@ -14584,9 +14594,14 @@ const list$2 = import_cjs$4.command({
|
|
|
14584
14594
|
type: import_cjs$4.optional(sandboxName),
|
|
14585
14595
|
long: "name",
|
|
14586
14596
|
description: "Filter snapshots by sandbox."
|
|
14597
|
+
}),
|
|
14598
|
+
sortOrder: import_cjs$4.option({
|
|
14599
|
+
long: "sort-order",
|
|
14600
|
+
description: "Sort order. Options: asc, desc (default)",
|
|
14601
|
+
type: import_cjs$4.optional(import_cjs$4.oneOf(["asc", "desc"]))
|
|
14587
14602
|
})
|
|
14588
14603
|
},
|
|
14589
|
-
async handler({ scope: { token: token$1, team: team$1, project: project$1 }, name }) {
|
|
14604
|
+
async handler({ scope: { token: token$1, team: team$1, project: project$1 }, name, sortOrder }) {
|
|
14590
14605
|
const snapshots$1 = await (async () => {
|
|
14591
14606
|
try {
|
|
14592
14607
|
var _usingCtx$1 = _usingCtx();
|
|
@@ -14596,7 +14611,8 @@ const list$2 = import_cjs$4.command({
|
|
|
14596
14611
|
teamId: team$1,
|
|
14597
14612
|
projectId: project$1,
|
|
14598
14613
|
name,
|
|
14599
|
-
limit:
|
|
14614
|
+
limit: 50,
|
|
14615
|
+
...sortOrder && { sortOrder }
|
|
14600
14616
|
});
|
|
14601
14617
|
return snapshots$2;
|
|
14602
14618
|
} catch (_) {
|
|
@@ -14736,9 +14752,14 @@ const list$1 = import_cjs$2.command({
|
|
|
14736
14752
|
type: sandboxName,
|
|
14737
14753
|
description: "Sandbox name to list sessions for"
|
|
14738
14754
|
}),
|
|
14755
|
+
sortOrder: import_cjs$2.option({
|
|
14756
|
+
long: "sort-order",
|
|
14757
|
+
description: "Sort order. Options: asc, desc (default)",
|
|
14758
|
+
type: import_cjs$2.optional(import_cjs$2.oneOf(["asc", "desc"]))
|
|
14759
|
+
}),
|
|
14739
14760
|
scope
|
|
14740
14761
|
},
|
|
14741
|
-
async handler({ scope: { token: token$1, team: team$1, project: project$1 }, all, sandbox: name }) {
|
|
14762
|
+
async handler({ scope: { token: token$1, team: team$1, project: project$1 }, all, sandbox: name, sortOrder }) {
|
|
14742
14763
|
const sandbox = await sandboxClient.get({
|
|
14743
14764
|
name,
|
|
14744
14765
|
projectId: project$1,
|
|
@@ -14749,7 +14770,7 @@ const list$1 = import_cjs$2.command({
|
|
|
14749
14770
|
try {
|
|
14750
14771
|
var _usingCtx$1 = _usingCtx();
|
|
14751
14772
|
const _spinner$1 = _usingCtx$1.u(acquireRelease(() => ora("Fetching sessions...").start(), (s$1) => s$1.stop()));
|
|
14752
|
-
return sandbox.listSessions();
|
|
14773
|
+
return sandbox.listSessions({ ...sortOrder && { sortOrder } });
|
|
14753
14774
|
} catch (_) {
|
|
14754
14775
|
_usingCtx$1.e = _;
|
|
14755
14776
|
} finally {
|
|
@@ -15061,4 +15082,4 @@ const app = (opts) => (0, import_cjs.subcommands)({
|
|
|
15061
15082
|
|
|
15062
15083
|
//#endregion
|
|
15063
15084
|
export { source_exports as a, init_source as i, StyledError as n, require_cjs as r, app as t };
|
|
15064
|
-
//# sourceMappingURL=app-
|
|
15085
|
+
//# sourceMappingURL=app-Bxg8uoG5.mjs.map
|