securewithtrace 0.24.0 → 0.25.0
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 +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27034,14 +27034,22 @@ Examples:
|
|
|
27034
27034
|
}
|
|
27035
27035
|
});
|
|
27036
27036
|
}
|
|
27037
|
+
var ORG_LIST_MAX_LIMIT = 100;
|
|
27037
27038
|
function createOrgListCommand() {
|
|
27038
|
-
return new Command("list").description("List organizations available to your account").option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").option(
|
|
27039
|
-
|
|
27040
|
-
|
|
27041
|
-
|
|
27039
|
+
return new Command("list").description("List organizations available to your account").option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").option(
|
|
27040
|
+
"-L, --limit <n>",
|
|
27041
|
+
`Max organizations to display, max ${ORG_LIST_MAX_LIMIT} (default: all)`,
|
|
27042
|
+
(v) => {
|
|
27043
|
+
const n = Number.parseInt(v, 10);
|
|
27044
|
+
if (Number.isNaN(n) || n < 1) {
|
|
27045
|
+
throw new Error("--limit must be a positive integer");
|
|
27046
|
+
}
|
|
27047
|
+
if (n > ORG_LIST_MAX_LIMIT) {
|
|
27048
|
+
throw new Error(`--limit cannot exceed ${ORG_LIST_MAX_LIMIT}`);
|
|
27049
|
+
}
|
|
27050
|
+
return n;
|
|
27042
27051
|
}
|
|
27043
|
-
|
|
27044
|
-
}).option(
|
|
27052
|
+
).option(
|
|
27045
27053
|
"-f, --filter <expression>",
|
|
27046
27054
|
"Filter expression (repeatable). Fields: name, slug. Operators: = exact, != not exact, : contains, !: not contains",
|
|
27047
27055
|
(val, prev) => [...prev, val],
|