/** * Handles the "puli plugin --remove" command. * * @param Args $args The console arguments * * @return int The status code */ public function handleDelete(Args $args) { $pluginClass = $args->getArgument('class'); if (!$this->manager->hasPluginClass($pluginClass)) { throw new RuntimeException(sprintf('The plugin class "%s" is not installed.', $pluginClass)); } $this->manager->removePluginClass($pluginClass); return 0; }