File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed
BuiltIn/Resources/art-fonts Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ $app->setLogo("
1616 / ____/ / / _/ / | ____ ____ / (_)________ _/ /_(_)___ ____
1717 / / / / / / / /| | / __ \/ __ \/ / / ___/ __ `/ __/ / __ \/ __ \
1818 / /___/ /____/ / / ___ |/ /_/ / /_/ / / / /__/ /_/ / /_/ / /_/ / / / /
19- \____/_____/___/ /_/ |_/ .___/ .___/_/_/\___/\__,_ /\__/_/\____/_/ /_/
19+ \____/_____/___/ /_/ |_/ .___/ .___/_/_/\___/\____ /\__/_/\____/_/ /_/
2020 /_/ /_/
2121 " , 'success ' );
2222
23- // require dirname(__DIR__) . '/boot/cli-services.php';
24-
2523require __DIR__ . '/routes.php ' ;
2624
2725// run
Original file line number Diff line number Diff line change 3535$ app ->controller (ProcessController::class, null , [
3636 'aliases ' => 'prc '
3737]);
38+
39+ // add alias for a group command.
40+ $ app ->addCommandAliases ('home:test ' , 'h-test ' );
Original file line number Diff line number Diff line change @@ -267,13 +267,11 @@ protected function dispatch($name)
267267 $ action = '' ;
268268
269269 // like 'home:index'
270- if (strpos ($ name , $ sep ) > 0 ) {
271- $ input = array_values (array_filter (explode ($ sep , $ name )));
272- list ($ name , $ action ) = \count ($ input ) > 2 ? array_splice ($ input , 2 ) : $ input ;
270+ if (strpos ($ realName , $ sep ) > 0 ) {
271+ $ input = array_values (array_filter (explode ($ sep , $ realName )));
272+ list ($ realName , $ action ) = \count ($ input ) > 2 ? array_splice ($ input , 2 ) : $ input ;
273273 }
274274
275- $ realName = $ this ->getRealCommandName ($ name );
276-
277275 if ($ this ->isController ($ realName )) {
278276 return $ this ->runAction ($ realName , $ action , true );
279277 }
Original file line number Diff line number Diff line change 22 / ___| | |_ _| / \ _ __ _ __ | (_) ___ __ _| |_(_) ___ _ __
33 | | | | | | / _ \ | '_ \| '_ \| | |/ __/ _` | __| |/ _ \| '_ \
44 | |___| |___ | | / ___ \| |_) | |_) | | | (_| (_| | |_| | (_) | | | |
5- \____|_____|___| /_/ \_\ .__/| .__/|_|_|\___\__,_ |\__|_|\___/|_| |_|
5+ \____|_____|___| /_/ \_\ .__/| .__/|_|_|\___\____ |\__|_|\___/|_| |_|
66 |_| |_|
Original file line number Diff line number Diff line change 22 / ____/ / / _/ / | ____ ____ / (_)________ _/ /_(_)___ ____
33 / / / / / / / /| | / __ \/ __ \/ / / ___/ __ `/ __/ / __ \/ __ \
44 / /___/ /____/ / / ___ |/ /_/ / /_/ / / / /__/ /_/ / /_/ / /_/ / / / /
5- \____/_____/___/ /_/ |_/ .___/ .___/_/_/\___/\__,_ /\__/_/\____/_/ /_/
5+ \____/_____/___/ /_/ |_/ .___/ .___/_/_/\___/\____ /\__/_/\____/_/ /_/
66 /_/ /_/
You can’t perform that action at this time.
0 commit comments