fixup! diigo-cache: RSS in diigo's export shape, from cached items

Comments written for the reader: no restating what the shebang says, no traces of the design conversation; the publish comment no longer mentions a projection that no longer exists.

Generated-by: Claude Opus 5.5
This commit is contained in:
dckc committed 2026-10-07 09:46:21 -05:00
1 parent 697fd95514
commit 7c0d1d62c6
1 file changed
+5 -7
+5 -7
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
/** @file program script: does a cache hold everything in a diigo RSS export? See {@link HELP}. */ /** @file Does a cache hold everything in a diigo RSS export? See {@link HELP}. */
/** the manual (a docstring, as a value): printed on bad usage */ /** printed on bad usage */
const HELP = `usage: node scripts/compare-export.ts <cache.sqlite> <export.xml> <out-dir> const HELP = `usage: node scripts/compare-export.ts <cache.sqlite> <export.xml> <out-dir>
Generates RSS from the cache's items (src/rss.ts) and compares it with the Generates RSS from the cache's items (src/rss.ts) and compares it with the
@@ -118,11 +118,9 @@ export function outDir(fs: Pick<typeof nodeFs, "writeFile">, dir: string) {
} }
/** /**
* the program's edge (ocap discipline, transitional form): takes the * Run the comparison. Every power it uses comes in as a default argument
* standard authorities as default arguments and attenuates them here — * and is narrowed here — the database to {@link cacheItems}, the output
* the database to {@link cacheItems}, the output directory to * directory to {@link outDir} — before anything else uses it.
* {@link outDir} — before anything else uses them; reports the exit code
* through `exit`
*/ */
export async function main( export async function main(
argv = process.argv.slice(2), argv = process.argv.slice(2),