Something went wrong. Try again.
CLI for Linear via GraphQL API
Something went wrong. Try again.
1234567891011121314151617181920212223import type { Command } from "commander";import { type ListDocumentsOptions, listDocuments,} from "../../../commands/document";import { addWorkspaceOption, parsePositiveInt, strict } from "../../helpers";
export function registerDocumentList(parent: Command): void { strict(addWorkspaceOption(parent.command("list"))) .description("List documents") .option("--project <id>", "Filter by project ID") .option("--limit <n>", "Maximum results", parsePositiveInt("limit")) .option("--json", "Output as JSON") .action(async (options) => { const opts: ListDocumentsOptions = { project: options.project, limit: options.limit, json: options.json, }; await listDocuments(opts); });}