Dashboard › cli › Distillation
19e1da2c-ef11-4438-9800-f4751e971fd0["lore_tm_v1_PG21xKxwVLBmYLB2I6agkY2Pg8RA0kfSF2S7xLE6tCc"]
/home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-command-docs.ts, escapeAngleBrackets(text: string) at lines 142-144 replaces < with < and > with > so angle brackets render literally in HTML output./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-command-docs.ts, formatPositionalsTable(positionals: PositionalInfo[]) at lines 147-163 returns "" for no positionals; otherwise emits an **Arguments:** Markdown table. Required arguments use `<${p.placeholder}>`, optional arguments use `[<${p.placeholder}>]`, and p.brief is processed with escapeAngleBrackets()./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-command-docs.ts, formatFlagsTable(flags: FlagInfo[], aliases: Record<string, string>) at lines 166-183 returns "" for no flags; otherwise emits an **Options:** Markdown table and generates each row with formatFlagRow(flag, aliases)./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-command-docs.ts, generateCommandSection(cmd: CommandInfo) at lines 190-218 builds a command heading from cmd.path plus optional cmd.positional, adds cmd.brief, includes a positional-arguments table when cmd.positionals.length > 0, includes an options table for getVisibleFlags(cmd), appends formatCommandExamples(cmd.examples) when nonempty, and joins output with "\n"./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-command-docs.ts, isStandaloneCommand(route: RouteInfo) at lines 221-226 considers a route standalone only when route.commands.length === 1 and route.commands[0].path === \sentry ${route.name}``./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-command-docs.ts, generatePage(route: RouteInfo) begins at line 234; it uses singular description ${capitalize(route.name)} command for the Sentry CLI for standalone commands and plural ${capitalize(route.name)} commands for the Sentry CLI otherwise, then emits YAML frontmatter containing title: ${route.name} and description: ${description}.