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