protected function execute(InputInterface $input, OutputInterface $output)
{
if ($this->isInstalled() === false) {
throw new RuntimeException('Invalid Kirby installation');
}
$helper = $this->getHelper('question');
$question = new ConfirmationQuestion('<info>Do you really want to uninstall the Panel? (y/n)</info>' . PHP_EOL . 'leave blank to cancel: ', false);
if ($helper->ask($input, $output, $question)) {
// load kirby
$this->bootstrap();
// remove the panel folder
dir::remove($this->dir() . DS . 'panel');
$output->writeln('<comment>The panel has been uninstalled!</comment>');
$output->writeln('');
}
}