77 * For the full copyright and license information, please view the LICENSE
88 * file that was distributed with this source code.
99 */
10- namespace Framework \ CLI \Commands ;
10+ namespace Aplus \ Cli \Commands ;
1111
12- use Framework \ CLI \ CLI ;
13- use Framework \ CLI \Command ;
14- use Framework \ CLI \Styles \ForegroundColor ;
12+ use Aplus \ Cli \ Cli ;
13+ use Aplus \ Cli \Command ;
14+ use Aplus \ Cli \Styles \ForegroundColor ;
1515
1616/**
1717 * Class Index.
@@ -61,27 +61,27 @@ protected function listCommands() : void
6161 }
6262 $ groups [$ group ][$ name ] = $ command ;
6363 }
64- CLI ::write (
64+ Cli ::write (
6565 $ this ->console ->getLanguage ()->render ('cli ' , 'availableCommands ' ) . ': ' ,
6666 ForegroundColor::yellow
6767 );
6868 [$ width , $ lengths ] = $ this ->getWidthAndLengths ($ groupDefault );
6969 foreach ($ groupDefault as $ name => $ command ) {
70- CLI ::write (
71- ' ' . CLI ::style ($ name , ForegroundColor::green) . ' '
70+ Cli ::write (
71+ ' ' . Cli ::style ($ name , ForegroundColor::green) . ' '
7272 // @phpstan-ignore-next-line
7373 . \str_repeat (' ' , $ width - $ lengths [$ name ])
7474 . $ this ->editDescription ($ command ->getDescription ())
7575 );
7676 }
7777 \ksort ($ groups );
7878 foreach ($ groups as $ groupName => $ commands ) {
79- CLI ::newLine ();
80- CLI ::write (' ' . $ groupName . ': ' , ForegroundColor::brightYellow);
79+ Cli ::newLine ();
80+ Cli ::write (' ' . $ groupName . ': ' , ForegroundColor::brightYellow);
8181 [$ width , $ lengths ] = $ this ->getWidthAndLengths ($ commands );
8282 foreach ($ commands as $ name => $ command ) {
83- CLI ::write (
84- ' ' . CLI ::style ($ name , ForegroundColor::green) . ' '
83+ Cli ::write (
84+ ' ' . Cli ::style ($ name , ForegroundColor::green) . ' '
8585 // @phpstan-ignore-next-line
8686 . \str_repeat (' ' , $ width - $ lengths [$ name ])
8787 . $ this ->editDescription ($ command ->getDescription ())
@@ -128,7 +128,7 @@ protected function showHeader() : void
128128 |_|
129129
130130 EOL;
131- CLI ::write ($ text , ForegroundColor::green);
131+ Cli ::write ($ text , ForegroundColor::green);
132132 }
133133
134134 protected function showDate () : void
@@ -137,7 +137,7 @@ protected function showDate() : void
137137 $ text = \ucfirst ($ text ) . ' - '
138138 . \date ('H:i:s ' ) . ' - '
139139 . \date_default_timezone_get () . \PHP_EOL ;
140- CLI ::write ($ text );
140+ Cli ::write ($ text );
141141 }
142142
143143 protected function greet () : void
@@ -151,8 +151,8 @@ protected function greet() : void
151151 }
152152 $ greeting = $ this ->console ->getLanguage ()
153153 ->render ('cli ' , 'greet. ' . $ timing , [$ this ->getUser ()]);
154- CLI ::write ($ greeting );
155- CLI ::newLine ();
154+ Cli ::write ($ greeting );
155+ Cli ::newLine ();
156156 }
157157
158158 protected function getUser () : string
0 commit comments