public function showVersionInfo(): void
    {
        $os         = \PHP_OS;
        $date       = \date('Y.m.d');
        $logo       = '';
        $name       = $this->getParam('name', 'Console Application');
        $version    = $this->getParam('version', 'Unknown');
        $publishAt  = $this->getParam('publishAt', 'Unknown');
        $updateAt   = $this->getParam('updateAt', 'Unknown');
        $phpVersion = \PHP_VERSION;

        if ($logoTxt = $this->getLogoText()) {
            $logo = ColorTag::wrap($logoTxt, $this->getLogoStyle());
        }

        /** @var \Inhere\Console\IO\Output $out */
        $out = $this->output;
        $out->aList([
            "$logo\n  <info>{$name}</info>, Version <comment>$version</comment>\n",
            'System Info'      => "PHP version <info>$phpVersion</info>, on <info>$os</info> system",
            'Application Info' => "Update at <info>$updateAt</info>, publish at <info>$publishAt</info>(current $date)",
        ], null, [
            'leftChar' => '',
            'sepChar'  => ' :  '
        ]);
    }
public function showVersionInfo(): void
    {
        $os         = \PHP_OS;
        $date       = \date('Y.m.d');
        $logo       = '';
        $name       = $this->getParam('name', 'Console Application');
        $version    = $this->getParam('version', 'Unknown');
        $publishAt  = $this->getParam('publishAt', 'Unknown');
        $updateAt   = $this->getParam('updateAt', 'Unknown');
        $phpVersion = \PHP_VERSION;

        if ($logoTxt = $this->getLogoText()) {
            $logo = ColorTag::wrap($logoTxt, $this->getLogoStyle());
        }

        /** @var \Inhere\Console\IO\Output $out */
        $out = $this->output;
        $out->aList([
            "$logo\n  <info>{$name}</info>, Version <comment>$version</comment>\n",
            'System Info'      => "PHP version <info>$phpVersion</info>, on <info>$os</info> system",
            'Application Info' => "Update at <info>$updateAt</info>, publish at <info>$publishAt</info>(current $date)",
        ], null, [
            'leftChar' => '',
            'sepChar'  => ' :  '
        ]);
    }
public function showVersionInfo ( ) : void { $ os = \ PHP_OS ; $ date = \ date ( 'Y.m.d' ) ; $ logo = '' ; $ name = $ this -> getParam ( 'name' , 'Console Application' ) ; $ version = $ this -> getParam ( 'version' , 'Unknown' ) ; $ publishAt = $ this -> getParam ( 'publishAt' , 'Unknown' ) ; $ updateAt = $ this -> getParam ( 'updateAt' , 'Unknown' ) ; $ phpVersion = \ PHP_VERSION ; if ( $ logoTxt = $ this -> getLogoText ( ) ) { $ logo = ColorTag :: wrap ( $ logoTxt , $ this -> getLogoStyle ( ) ) ; } /** @var \Inhere\Console\IO\Output $out */ $ out = $ this -> output ; $ out -> aList ( [ "$logo\n  <info>{$name}</info>, Version <comment>$version</comment>\n" , 'System Info' => "PHP version <info>$phpVersion</info>, on <info>$os</info> system" , 'Application Info' => "Update at <info>$updateAt</info>, publish at <info>$publishAt</info>(current $date)" , ] , null , [ 'leftChar' => '' , 'sepChar' => ' :  ' ] ) ; }
Display the application version information
Display the application version information