Skip to content

Commit

Permalink
Add confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Feb 5, 2024
1 parent 9e3937f commit 8ae1407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/clean/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ae1407

Please sign in to comment.