@crabcloud/cli 0.2.3 → 0.2.4
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/crab.js +10 -2
- package/package.json +1 -1
package/dist/crab.js
CHANGED
|
@@ -7417,8 +7417,16 @@ async function storageList() {
|
|
|
7417
7417
|
params.set("type", type);
|
|
7418
7418
|
}
|
|
7419
7419
|
const category = readFlag("--category");
|
|
7420
|
-
if (category)
|
|
7421
|
-
|
|
7420
|
+
if (category) {
|
|
7421
|
+
if (category === "none") {
|
|
7422
|
+
params.set("category", "none");
|
|
7423
|
+
} else {
|
|
7424
|
+
const resolved = await resolveCategoryId(credentials, category);
|
|
7425
|
+
if (typeof resolved === "number")
|
|
7426
|
+
return resolved;
|
|
7427
|
+
params.set("category", resolved);
|
|
7428
|
+
}
|
|
7429
|
+
}
|
|
7422
7430
|
const tags = readFlag("--tag");
|
|
7423
7431
|
if (tags)
|
|
7424
7432
|
params.set("tags", tags);
|
package/package.json
CHANGED