Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults input shortcut values to null #250

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Commands/DatabaseDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function configure()
$this
->setName('database:delete')
->addArgument('database', InputArgument::REQUIRED, 'The database name / ID')
->addOption('force', false, InputOption::VALUE_NONE, 'Force deletion of the database without confirmation')
->addOption('force', null, InputOption::VALUE_NONE, 'Force deletion of the database without confirmation')
->setDescription('Delete a database');
}

Expand All @@ -29,7 +29,7 @@ protected function configure()
*/
public function handle()
{
$forceDeletion = $this->option('force', false);
$forceDeletion = $this->option('force');

if (! $forceDeletion && ! Helpers::confirm('Are you sure you want to delete this database', false)) {
Helpers::abort('Action cancelled.');
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/EnvDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function configure()
$this
->setName('env:delete')
->addArgument('environment', InputArgument::REQUIRED, 'The environment name')
->addOption('force', false, InputOption::VALUE_NONE, 'Force deletion of the environment without confirmation')
->addOption('force', null, InputOption::VALUE_NONE, 'Force deletion of the environment without confirmation')
->setDescription('Delete an environment');
}

Expand All @@ -33,7 +33,7 @@ public function handle()
{
$environment = $this->argument('environment');

$forceDeletion = $this->option('force', false);
$forceDeletion = $this->option('force');

if (! $forceDeletion && ! Helpers::confirm("Are you sure you want to delete the [{$environment}] environment", false)) {
Helpers::abort('Action cancelled.');
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/RecordDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected function configure()
->addArgument('type', InputArgument::REQUIRED, 'The record type')
->addArgument('name', InputArgument::OPTIONAL, 'The record name')
->addArgument('value', InputArgument::OPTIONAL, 'The record value')
->addOption('force', false, InputOption::VALUE_NONE, 'Force deletion of the record without confirmation')
->addOption('force', null, InputOption::VALUE_NONE, 'Force deletion of the record without confirmation')
->setDescription('Delete a DNS record');
}

Expand All @@ -32,7 +32,7 @@ protected function configure()
*/
public function handle()
{
$forceDeletion = $this->option('force', false);
$forceDeletion = $this->option('force');

if (! $forceDeletion && ! Helpers::confirm('Are you sure you want to delete this record', false)) {
Helpers::abort('Action cancelled.');
Expand Down
Loading