addArgument('plugin', InputArgument::REQUIRED, 'The plugin name'); } /** * {@inheritdoc} */ protected function executeCommand(): int { $name = $this->input->getArgument('plugin'); $plugin = $this->getPlugin($name); if (! isset($plugin->id)) { throw new RuntimeException(sprintf('Plugin %s is not installed', $plugin->name)); } if (! $this->confirm(sprintf('Remove plugin %s', $plugin->name))) { return Command::SUCCESS; } return $this->plugins->removePlugin($plugin->id) ? Command::SUCCESS : Command::FAILURE; } }