Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 8, 2020
1 parent a62cd67 commit 50ac0f6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Common/CmdRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function do(bool $printOutput = false): self

// print output
$this->printOutput = $printOutput;
if ($this->printOutput && $ret['output']) {
if ($printOutput && $ret['output']) {
echo $ret['output'] . "\n";
}

Expand Down
29 changes: 25 additions & 4 deletions app/Console/Group/GitLabGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ public static function aliases(): array
protected static function commandAliases(): array
{
return [
'pr' => 'prLink',
'li' => 'linkInfo',
'pr' => 'prLink',
'li' => 'linkInfo',
'cf' => 'config',
'conf' => 'config',
];
}

Expand All @@ -74,7 +76,26 @@ protected function configure(): void
// }

/**
* parse link print information
* show gitlab config information
*
* @options
* -l, --list List all project information
*
* @param Input $input
* @param Output $output
*/
public function configCommand(Input $input, Output $output): void
{
if ($input->getSameBoolOpt(['l', 'list'])) {
$output->json($this->config);
return;
}

$output->success('Complete');
}

/**
* show gitlab project config information
*
* @options
* -l, --list List all project information
Expand Down Expand Up @@ -147,7 +168,7 @@ public function prLinkCommand(Input $input, Output $output): void
$srcBranch = $input->getSameStringOpt(['s', 'source']);
$tgtBranch = $input->getSameStringOpt(['t', 'target']);

if ($srcBranch ) {
if ($srcBranch) {
if (!in_array($srcBranch, $fixedBrs, true)) {
$srcBranch = $brPrefix . $srcBranch;
}
Expand Down
1 change: 1 addition & 0 deletions bin/kite
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $app = new Application([
'version' => '0.5.1',
'publishAt' => '2020.05.24',
'updateAt' => date('Y.m.d'),
'description' => 'Kite is an help commands tool for development',
]);

// register routes
Expand Down
Binary file modified resource/images/kite-help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50ac0f6

Please sign in to comment.