All files help.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36              2x                                                        
/**
 * Help text for `bin/ethercalc`.
 *
 * Kept separate from `parse.ts` so a test can snapshot it without importing
 * argv-parsing side effects. Format mirrors the legacy README "Runtime
 * Flags" section (see README.mkdn) so long-time users recognize the layout.
 */
export const HELP_TEXT: string = [
  'ethercalc — multi-user spreadsheet server',
  '',
  'USAGE',
  '  ethercalc [OPTIONS]',
  '',
  'OPTIONS',
  '  --key <secret>       HMAC secret for read-write auth (§6.4).',
  '                       Sets ETHERCALC_KEY for the Worker.',
  '  --cors               Enable permissive CORS headers.',
  '                       Sets ETHERCALC_CORS=1.',
  '  --port <n>           Listening port (default 8000).',
  '                       Passed as `wrangler dev --port <n>`.',
  '  --host <addr>        Listening address (default 0.0.0.0).',
  '                       Passed as `wrangler dev --ip <addr>`.',
  '  --expire <sec>       Seconds of inactivity before a room is pruned.',
  '                       Sets ETHERCALC_EXPIRE=<sec>.',
  '  --basepath <prefix>  URL prefix when running behind a reverse proxy.',
  '                       Sets ETHERCALC_BASEPATH=<prefix>.',
  '  --keyfile <path>     TLS private key (DEFERRED — wrangler dev does not',
  '                       currently expose TLS; use a reverse proxy).',
  '  --certfile <path>    TLS certificate (DEFERRED — see --keyfile).',
  '  --persist-to <dir>   Persist Miniflare D1/KV/R2/DO state to <dir>.',
  '                       Default: .wrangler/state (wrangler default).',
  '  -h, --help           Print this help and exit.',
  '',
  'See CLAUDE.md §8 Phase 11 and §13 Q6 for the design rationale.',
].join('\n');