(command: string)
| 6 | * collapse-group ⎿ hint — it's what Claude wrote for the human to read. |
| 7 | */ |
| 8 | export function extractBashCommentLabel(command: string): string | undefined { |
| 9 | const nl = command.indexOf('\n') |
| 10 | const firstLine = (nl === -1 ? command : command.slice(0, nl)).trim() |
| 11 | if (!firstLine.startsWith('#') || firstLine.startsWith('#!')) return undefined |
| 12 | return firstLine.replace(/^#+\s*/, '') || undefined |
| 13 | } |
| 14 |
no outgoing calls
no test coverage detected