(cmd: CommandBase)
| 207 | |
| 208 | /** Resolves the user-visible name, falling back to `cmd.name` when not overridden. */ |
| 209 | export function getCommandName(cmd: CommandBase): string { |
| 210 | return cmd.userFacingName?.() ?? cmd.name |
| 211 | } |
| 212 | |
| 213 | /** Resolves whether the command is enabled, defaulting to true. */ |
| 214 | export function isCommandEnabled(cmd: CommandBase): boolean { |
no outgoing calls
no test coverage detected