getkirby / cli

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

clear cache fallback to pages does not work #22

Closed bnomei closed 1 year ago

bnomei commented 1 year ago

https://github.com/getkirby/cli/blob/9182f924454a7d00e586b6b9e82266557c94abb4/commands/clear/cache.php#L17

using ??= does not work here since $name will be an empty string if returned from prompt with ENTER. use $name = empty($name) ? 'pages' : $name; or something similar instead.

bastianallgeier commented 1 year ago