getkirby / cli

Kirby Command Line Interface
MIT License
51 stars 5 forks source link

Fix throwing exception in `clean:content` command #61

Closed afbora closed 6 months ago

afbora commented 6 months ago

throw $e->getMessage() usage is invalid. I just moved the error message to $cli->error()

afbora commented 6 months ago

I also suggest to change the clean() function name to something more specific (for ex: cliClean() or something like that) or make it an anonymous function, in case it is conflicting with another clean() function in the application.