Coding standards
Security in ResourceSpace
Developer reference
Database
User api session functions
Geolocation functions
Storage test functions
Cli functions
Lang translation functions

cli_log()

Description

Print a persistent progress message, clearing any current animation frame first.

Parameters

ColumnTypeDefaultDescription
$message string Progress text.
$style string '': void { fwriteSTDOUT Optional terminal message style.
? cli_is_interactive
. $style
$width int

Return

void

Location

include/cli_functions.php lines 47 to 51

Definition

 
function cli_log(string $message, string $style = ''): void
{
    
fwrite(STDOUT, (cli_is_interactive() ? "\r\033[2K" : '')
        . 
cli_style($message, $style) . "\n");
}

This article was last updated 27th November 2026 18:35 Europe/London time based on the source file dated 27th November 2026 17:15 Europe/London time.