core/ctr/router/cli.php
/**
     * Record CLI Runtime values
     *
     * @param array $resource
     */
Record CLI Runtime values
@param array $resource
Record CLI Runtime values @param array $resource
private static function cli_rec(array $resource): void
    {
        $logs = [];
        if (self::$log) {
            $logs['cmd'] = &$resource['cmd'];
            $logs['data'] = self::$cli_data;
            $logs['error'] = self::get_stream([$resource['proc'], $resource['pipe'][2]]);
            $logs['result'] = self::get_stream([$resource['proc'], $resource['pipe'][1]]);
            self::save_log($logs);
        }
        if (self::$ret) parent::$result[$resource['cmd']] = $logs['result'] ?? self::get_stream([$resource['proc'], $resource['pipe'][1]]);
        unset($resource, $logs);
    }
private static function cli_rec ( array $ resource ) : void { $ logs = [ ] ; if ( self :: $ log ) { $ logs [ 'cmd' ] = & $ resource [ 'cmd' ] ; $ logs [ 'data' ] = self :: $ cli_data ; $ logs [ 'error' ] = self :: get_stream ( [ $ resource [ 'proc' ] , $ resource [ 'pipe' ] [ 2 ] ] ) ; $ logs [ 'result' ] = self :: get_stream ( [ $ resource [ 'proc' ] , $ resource [ 'pipe' ] [ 1 ] ] ) ; self :: save_log ( $ logs ) ; } if ( self :: $ ret ) parent :: $ result [ $ resource [ 'cmd' ] ] = $ logs [ 'result' ] ?? self :: get_stream ( [ $ resource [ 'proc' ] , $ resource [ 'pipe' ] [ 1 ] ] ) ; unset ( $ resource , $ logs ) ; }
Record CLI Runtime values
 @param array $resource
Record CLI Runtime values @param array $resource
//Write logs //Build result