Skip to content

Commit

Permalink
up: move all Console/Attach class to Console/SubCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Oct 29, 2022
1 parent 8266072 commit aaf03ae
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/Console/Controller/Gitx/GitLabController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
use Inhere\Kite\Common\Cmd;
use Inhere\Kite\Common\CmdRunner;
use Inhere\Kite\Common\GitLocal\GitLab;
use Inhere\Kite\Console\Attach\Gitlab\BranchCmd;
use Inhere\Kite\Console\Attach\Gitlab\BranchDeleteCmd;
use Inhere\Kite\Console\Attach\Gitlab\MergeRequestCmd;
use Inhere\Kite\Console\Attach\Gitlab\ProjectCmd;
use Inhere\Kite\Console\Component\RedirectToGitGroup;
use Inhere\Kite\Console\SubCmd\Gitflow\BranchCreateCmd;
use Inhere\Kite\Console\SubCmd\Gitflow\UpdateNoPushCmd;
use Inhere\Kite\Console\SubCmd\Gitflow\UpdatePushCmd;
use Inhere\Kite\Console\SubCmd\GitlabCmd\BranchCmd;
use Inhere\Kite\Console\SubCmd\GitlabCmd\BranchDeleteCmd;
use Inhere\Kite\Console\SubCmd\GitlabCmd\MergeRequestCmd;
use Inhere\Kite\Console\SubCmd\GitlabCmd\ProjectCmd;
use Inhere\Kite\Console\SubCmd\GitlabCmd\ResolveConflictCmd;
use Inhere\Kite\Helper\AppHelper;
use Inhere\Kite\Kite;
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Controller/GoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Inhere\Console\IO\Input;
use Inhere\Console\IO\Output;
use Inhere\Kite\Common\CmdRunner;
use Inhere\Kite\Console\Attach\Golang\GenerateCmd;
use Inhere\Kite\Console\SubCmd\Golang\GenerateCmd;
use Toolkit\PFlag\FlagsParser;
use function file_get_contents;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Gitlab;
namespace Inhere\Kite\Console\SubCmd\GitlabCmd;

use Inhere\Console\Command;
use Inhere\Console\IO\Input;
Expand All @@ -11,8 +11,7 @@
use Toolkit\PFlag\FlagsParser;

/**
* Class BranchCreateCmd
*
* Class BranchCmd
*/
class BranchCmd extends Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Gitlab;
namespace Inhere\Kite\Console\SubCmd\GitlabCmd;

use Inhere\Console\Command;
use Inhere\Console\Exception\PromptException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Gitlab;
namespace Inhere\Kite\Console\SubCmd\GitlabCmd;

use Inhere\Console\Command;
use Inhere\Console\IO\Input;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Gitlab;
namespace Inhere\Kite\Console\SubCmd\GitlabCmd;

use Inhere\Console\Command;
use Inhere\Console\IO\Input;
Expand All @@ -24,7 +24,7 @@ public static function aliases(): array
protected function subCommands(): array
{
return [
ProjectInit::class,
ProjectInitCmd::class,
];
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Gitlab;
namespace Inhere\Kite\Console\SubCmd\GitlabCmd;

use Inhere\Console\Command;
use Inhere\Console\IO\Input;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Golang;
namespace Inhere\Kite\Console\SubCmd\Golang;

use Inhere\Console\Command;
use Inhere\Console\IO\Input;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Inhere\Kite\Console\Attach\Golang;
namespace Inhere\Kite\Console\SubCmd\Golang;

use Inhere\Console\Command;
use Inhere\Console\IO\Input;
Expand Down

0 comments on commit aaf03ae

Please sign in to comment.