protected function execute(InputInterface $input, OutputInterface $output) { $this->input = $input; $this->output = $output; if (!$this->isInstalled()) { throw new RuntimeException('Invalid Kirby installation'); } $this->bootstrap(); // check if the thing already exists if ($this->exists()) { throw new RuntimeException('The ' . $this->what . ' exists and cannot be overwritten'); } // make sure the directory exists dir::make($this->dest()); $this->copy(); $this->info(); }