Skip to content

Commit

Permalink
Properly split git from github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang committed Nov 15, 2023
1 parent 6230a6d commit c1550bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"horde/autoloader": "*",
"horde/argv": "*",
"horde/cli": "^3",
"horde/cli_modular": "^3",
"horde/cli_modular": "dev-FRAMEWORK_6_0",
"horde/http": "*",
"horde/pear": "*",
"horde/role": "*",
Expand Down
5 changes: 5 additions & 0 deletions src/Module/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ public function handle(Config $config): bool
$this->dependencies->get(RunnerGithub::class)->run();
return true;
}
if (!empty($options['git'])
|| (isset($arguments[0]) && $arguments[0] == 'git')) {
$this->dependencies->get(RunnerGit::class)->run();
return true;
}
return false;
}
}
2 changes: 1 addition & 1 deletion src/Module/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function handle(Config $config): bool
$action = '';
}
$formatter = new \Horde_Argv_IndentedHelpFormatter();
$modules = $this->_dependencies->get(ModularCli::class)->getModules();
$modules = $this->dependencies->get(ModularCli::class)->getModules();
foreach ($modules as $module) {
$element = $module;
if (in_array($action, $element->getActions())) {
Expand Down

0 comments on commit c1550bc

Please sign in to comment.