(args: string)
| 10 | * Errors are shown in the pending images banner with auto-remove. |
| 11 | */ |
| 12 | export async function handleImageCommand(args: string): Promise<string> { |
| 13 | const [imagePath, ...rest] = args.trim().split(/\s+/) |
| 14 | |
| 15 | if (imagePath) { |
| 16 | await validateAndAddImage(imagePath, getProjectRoot()) |
| 17 | } |
| 18 | |
| 19 | return rest.join(' ') |
| 20 | } |
no test coverage detected