setDescription('Enables a plugin')
             ->addArgument('name', InputArgument::REQUIRED, 'The name of the plugin');
    }
    protected function doExecutePluginAction(InputInterface $input, OutputInterface $output)
    {
        $name = $input->getArgument('name');
        if (!$this->container['plugins.manager']->hasPlugin($name)) {
            $output->writeln(sprintf('There is no plugin named %s, aborting', $name));
            return 0;
        }
        if ($this->container['plugins.manager']->isEnabled($name)) {
            $output->writeln(sprintf('Plugin named %s is already enabled, aborting', $name));
            return 0;
        }
        $this->container['plugins.manager']->enable($name);
        $output->writeln(sprintf('Plugin named %s is now enabled', $name));
        return 0;
    }
}