{"version":3,"file":"help.cjs","names":["commandCatalog","flagHelpLines"],"sources":["../../src/cli/help.ts"],"sourcesContent":["import type { CommandDescriptor } from \"./catalog\";\nimport { commandCatalog } from \"./catalog\";\nimport { flagHelpLines } from \"./flags\";\n\nexport function printHelp() {\n  process.stdout.write(`everything-dev commands\\n\\n`);\n\n  for (const command of commandCatalog) {\n    process.stdout.write(`  everything-dev ${command.commandPath.join(\" \")}`);\n    process.stdout.write(command.meta.longRunning ? \" (long running)\" : \"\");\n    process.stdout.write(`\\n    ${command.summary}\\n`);\n  }\n\n  process.stdout.write(`\\n'bos' is an alias for 'everything-dev'.\\n`);\n}\n\n/** Per-command help — flags derive from the contract schemas (the one flag\n * source), command text from the contract's command meta. */\nexport function printCommandHelp(descriptor: CommandDescriptor) {\n  process.stdout.write(`everything-dev ${descriptor.commandPath.join(\" \")}\\n`);\n  process.stdout.write(`  ${descriptor.summary}\\n`);\n  if (descriptor.meta.longRunning) process.stdout.write(\"  (long running)\\n\");\n  const flags = flagHelpLines(descriptor);\n  if (flags.length > 0) {\n    process.stdout.write(`\\nflags:\\n`);\n    for (const line of flags) process.stdout.write(`${line}\\n`);\n  }\n  process.stdout.write(`\\n'bos' is an alias for 'everything-dev'.\\n`);\n}\n"],"mappings":";;;;AAIA,SAAgB,YAAY;CAC1B,QAAQ,OAAO,MAAM,6BAA6B;CAElD,KAAK,MAAM,WAAWA,gCAAgB;EACpC,QAAQ,OAAO,MAAM,oBAAoB,QAAQ,YAAY,KAAK,GAAG,GAAG;EACxE,QAAQ,OAAO,MAAM,QAAQ,KAAK,cAAc,oBAAoB,EAAE;EACtE,QAAQ,OAAO,MAAM,SAAS,QAAQ,QAAQ,GAAG;CACnD;CAEA,QAAQ,OAAO,MAAM,6CAA6C;AACpE;;;AAIA,SAAgB,iBAAiB,YAA+B;CAC9D,QAAQ,OAAO,MAAM,kBAAkB,WAAW,YAAY,KAAK,GAAG,EAAE,GAAG;CAC3E,QAAQ,OAAO,MAAM,KAAK,WAAW,QAAQ,GAAG;CAChD,IAAI,WAAW,KAAK,aAAa,QAAQ,OAAO,MAAM,oBAAoB;CAC1E,MAAM,QAAQC,4BAAc,UAAU;CACtC,IAAI,MAAM,SAAS,GAAG;EACpB,QAAQ,OAAO,MAAM,YAAY;EACjC,KAAK,MAAM,QAAQ,OAAO,QAAQ,OAAO,MAAM,GAAG,KAAK,GAAG;CAC5D;CACA,QAAQ,OAAO,MAAM,6CAA6C;AACpE"}