Skip to content
Merged
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
9 changes: 8 additions & 1 deletion src/GetBinaryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ protected function configure(): void
InputOption::VALUE_OPTIONAL,
'Generate configuration with plugins in a selected preset.'
);

$this->addOption(
'no-config',
null,
InputOption::VALUE_NONE,
'Do not generate configuration at all.'
);
}

/**
Expand Down Expand Up @@ -227,7 +234,7 @@ private function installConfig(string $to, InputInterface $in, StyleInterface $i
return false;
}

if (! $io->confirm('Do you want create default ".rr.yaml" configuration file?', true)) {
if ($in->getOption('no-config') || ! $io->confirm('Do you want create default ".rr.yaml" configuration file?', true)) {
return false;
}

Expand Down