9 lines
542 B
JavaScript
9 lines
542 B
JavaScript
export const USAGE = `Usage: node importRecipes.js --source <dir> [--out out] [--dry-run] [--limit N]
|
|
|
|
--source <dir> folder holding the .odt recipes to import (required)
|
|
--out <dir> where to write the result (default: out)
|
|
--dry-run read the .odt files and stop there - no API call, nothing written
|
|
--limit N import at most N files, useful for a first try
|
|
|
|
Writes <out>/recipes/<slug>.json, one file per recipe, and <out>/index.json.
|
|
Needs ANTHROPIC_API_KEY, or a profile from \`ant auth login\`, unless --dry-run.`
|