@stndrds/cli 1.0.0-alpha.166 → 1.0.0-alpha.169
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/bin.mjs +1 -2
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -180,10 +180,9 @@ function formatOutput(data, format) {
|
|
|
180
180
|
// src/commands/documents.ts
|
|
181
181
|
function registerDocumentsCommand(program) {
|
|
182
182
|
const documents = program.command("documents").description("Manage documents");
|
|
183
|
-
documents.command("list").description("List documents").option("--
|
|
183
|
+
documents.command("list").description("List documents").option("--limit <n>", "max documents to return").option("--offset <n>", "number of documents to skip").action(async (opts, cmd) => {
|
|
184
184
|
const client = getClientFromCommand(cmd);
|
|
185
185
|
const params = {};
|
|
186
|
-
if (opts.status) params.processingStatus = opts.status;
|
|
187
186
|
if (opts.limit) params.limit = opts.limit;
|
|
188
187
|
if (opts.offset) params.offset = opts.offset;
|
|
189
188
|
const result = await client.get("/documents", params);
|