88
99namespace Inhere \Console ;
1010
11- use Inhere \Console \Contract \BaseCommandInterface ;
11+ use Inhere \Console \Contract \CommandHandlerInterface ;
1212use Inhere \Console \Contract \CommandInterface ;
1313use Inhere \Console \IO \Input ;
1414use Inhere \Console \IO \InputDefinition ;
2222use Toolkit \PhpUtil \PhpDoc ;
2323
2424/**
25- * Class AbstractCommand
25+ * Class AbstractHandler
2626 * @package Inhere\Console
2727 */
28- abstract class AbstractCommand implements BaseCommandInterface
28+ abstract class AbstractHandler implements CommandHandlerInterface
2929{
3030 use InputOutputAwareTrait, UserInteractAwareTrait;
3131
@@ -257,7 +257,7 @@ public function coroutineRun(): bool
257257 }
258258
259259 /**
260- * before command execute
260+ * Before command execute
261261 * @return boolean It MUST return TRUE to continue execute.
262262 */
263263 protected function beforeExecute (): bool
@@ -266,15 +266,15 @@ protected function beforeExecute(): bool
266266 }
267267
268268 /**
269- * do execute command
269+ * Do execute command
270270 * @param Input $input
271271 * @param Output $output
272272 * @return int|mixed
273273 */
274274 abstract protected function execute ($ input , $ output );
275275
276276 /**
277- * after command execute
277+ * After command execute
278278 */
279279 protected function afterExecute (): void
280280 {
@@ -575,8 +575,7 @@ protected function showHelpByMethodAnnotations(string $method, string $action =
575575 }
576576
577577 $ help ['Global Options: ' ] = FormatUtil::alignOptions (
578- \array_merge (Application::getGlobalOptions (),
579- $ this ->commonOptions )
578+ \array_merge (Application::getGlobalOptions (), $ this ->commonOptions )
580579 );
581580 $ this ->output ->mList ($ help , [
582581 'sepChar ' => ' ' ,
0 commit comments