From 8ae14079ad84b5ff3852457fc5a21ff6e70b8c0b Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Mon, 5 Feb 2024 17:48:30 +0100 Subject: [PATCH] Add confirmation --- commands/clean/content.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/clean/content.php b/commands/clean/content.php index 4c9dd66..d470afb 100644 --- a/commands/clean/content.php +++ b/commands/clean/content.php @@ -48,6 +48,9 @@ function clean( return [ 'description' => 'Deletes all fields from page, file or user content files that are not defined in the blueprint, no matter if they contain content or not.', 'command' => static function (CLI $cli): void { + + $cli->confirmToContinue('This will delete all fields from content files that are not defined in blueprints, no matter if they contain content or not. Are you sure?'); + $kirby = $cli->kirby(); // Authenticate as almighty