protected function execute(InputInterface $input, OutputInterface $output)
 {
     $repoRoot = $input->getOption('repo-root');
     $output->writeln('installing into repository at "' . $repoRoot . '"');
     $hooker = new Hooker($this->hookerRoot, $repoRoot, $this->callingScript);
     $hooker->install();
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $repoRoot = $input->getOption('repo-root');
     $output->writeln('Executing ' . $input->getArgument('type') . ' in "' . $repoRoot . '"');
     $hooker = new Hooker($this->hookerRoot, $repoRoot, $this->callingScript);
     $out = $hooker->execute($input->getArgument('type'), $input->getArgument('git'));
     if ($out !== true) {
         list($text, $exitCode) = $out;
         $output->writeln($text);
         // symfony will use this return as the exit code
         return $exitCode;
     }
     // normal exit code
     return 0;
 }