public function onPluginCommand(CommandEvent $event)
    {
        if ($this->config->get('enabled', true)) {
            ConfigBuilder::validate($this->io, $this->composer->getPackage(), $event->getCommandName());

            if (!\in_array($event->getCommandName(), array('install', 'update'), true)) {
                $this->packageFilter->setEnabled(false);
            }
        }
    }