← Files Google DriveARCHIVED FILE
skills/google-docs/scripts/create_docs_dropdown_execution_context.mjs
740 Bytes · Sep 30, 2026 · 23:18 UTC
#!/usr/bin/env node
import { parseArgs } from "node:util";
import { resolve } from "node:path";
import { writeJson } from "../runtime/dropdown-common.mjs";
const { values } = parseArgs({ options: {
"workspace-root": { type: "string" },
"target-document-id": { type: "string" },
executor: { type: "string" },
output: { type: "string" },
} });
for (const key of ["workspace-root", "target-document-id", "executor", "output"]) if (!values[key]) throw new Error(`--${key} is required`);
await writeJson(values.output, {
version: 1,
kind: "google-docs-v2-dropdown-execution-context",
workspaceRoot: resolve(values["workspace-root"]),
targetDocumentId: values["target-document-id"],
executorPath: resolve(values.executor),
});
SHA-256: cf8c99d6d2d40409ab36ccebbcc7c54a010178d7bf41e12f52cc12cc96f99ed5