protected function execute(InputInterface $input, OutputInterface $output)
{
$kit = $input->getOption('kit');
$kits = ['starterkit', 'plainkit', 'langkit'];
if (!in_array($kit, $kits)) {
throw new RuntimeException('Invalid kit name: ' . $kit);
}
$output->writeln('');
$output->writeln('Installing the ' . $kit . '...');
if ($input->getOption('dev')) {
$this->dev($input, $output, $kit);
} else {
$this->install(['repo' => 'getkirby/' . $kit, 'branch' => 'master', 'path' => $input->getArgument('path'), 'output' => $output, 'success' => 'Kirby is installed!']);
}
}