(cmd: Command)
| 41 | } |
| 42 | |
| 43 | function getCommandDescription(cmd: Command): string { |
| 44 | const desc = cmd.whenToUse |
| 45 | ? `${cmd.description} - ${cmd.whenToUse}` |
| 46 | : cmd.description |
| 47 | return desc.length > MAX_LISTING_DESC_CHARS |
| 48 | ? desc.slice(0, MAX_LISTING_DESC_CHARS - 1) + '\u2026' |
| 49 | : desc |
| 50 | } |
| 51 | |
| 52 | function formatCommandDescription(cmd: Command): string { |
| 53 | // Debug: log if userFacingName differs from cmd.name for plugin skills |
no outgoing calls
no test coverage detected