diff --git a/app/Commands/RenderCommand.php b/app/Commands/RenderCommand.php index 5b7cd33..11a21be 100644 --- a/app/Commands/RenderCommand.php +++ b/app/Commands/RenderCommand.php @@ -33,6 +33,7 @@ class RenderCommand extends ConsoleCommand {--from-yaml=* : A yaml file path to load variable data from. } {--from-json=* : A json file path to load variable data from. } {--from-env=* : A .env file to load variable data from. } + {--confirm= : Add a confirmation prompt to this render call. } {--dry-run : Dump out compiled file contents only. } {--force : Force render or overwrite files.}'; @@ -100,6 +101,10 @@ public function handle() { $path = $this->data->get('path'); + if($this->data->get('confirm') && ! $this->components->confirm($this->data->get('confirm'))){ + $this->exit("Aborted"); + } + try { $variables = $this->gatherVariables(); } catch (InvalidArgumentException $e) { diff --git a/version.php b/version.php index f58c56f..872b7a7 100644 --- a/version.php +++ b/version.php @@ -1,3 +1 @@ -