setName('git:push'); $this->setDescription('Push Piwik repo and all submodules'); } protected function doExecute(): int { $cmd = sprintf('cd %s && git push --recurse-submodules=on-demand', PIWIK_DOCUMENT_ROOT); $this->getOutput()->writeln('Executing command: ' . $cmd); passthru($cmd); return self::SUCCESS; } }