GrumPHP\Console\Command\Git\InitCommand::generateHookCommand PHP Method

generateHookCommand() protected method

protected generateHookCommand ( $command ) : string
$command
return string
    protected function generateHookCommand($command)
    {
        $executable = $this->paths()->getBinCommand('grumphp', true);
        $this->processBuilder->setArguments([$this->paths()->getRelativeProjectPath($executable), $command]);
        if ($configFile = $this->useExoticConfigFile()) {
            $this->processBuilder->add(sprintf('--config=%s', $configFile));
        }
        return $this->processBuilder->getProcess()->getCommandLine();
    }