Dashboard › cli › Distillation
f27f4e24-c116-4747-93d9-4cde3e6f4035["lore_tm_v1_Tq_fahtqXkY6t3AIwC9Q5oAzHPlJV1y1efD44EO5Bv0"]
packages/cli/script/generate-command-docs.ts, escapeAngleBrackets(text) replaces < with < and > with > so literal angle brackets are not interpreted as HTML.packages/cli/script/generate-command-docs.ts, formatPositionalsTable(positionals) returns "" for no positionals; otherwise it emits an **Arguments:** Markdown table in input order. Required syntax is <${p.placeholder}>, optional syntax is [<${p.placeholder}>], syntax is wrapped in backticks, and p.brief is processed through escapeAngleBrackets().packages/cli/script/generate-command-docs.ts, formatFlagsTable(flags, aliases) returns "" for no flags; otherwise it emits an **Options:** Markdown table and formats each flag with formatFlagRow(flag, aliases).packages/cli/script/generate-command-docs.ts, generateCommandSection(cmd) builds the heading as ### \${cmd.path} ${cmd.positional}`whencmd.positionalis present, otherwise### `${cmd.path}`; it then adds cmd.brief, a positional table when cmd.positionals.length > 0, a flags table for nonempty getVisibleFlags(cmd), and formatted examples from formatCommandExamples(cmd.examples)` when nonempty.packages/cli/script/generate-command-docs.ts, isStandaloneCommand(route) is true only when route.commands.length === 1 and route.commands[0].path === \sentry ${route.name}``.