dolibarr 21.0.0-beta
functionscli.lib.php File Reference

A set of functions for CLI scripts of Dolibarr This file contains only functions used by script run on command line. More...

Go to the source code of this file.

Functions

 coloredText ($text, $color, $bold=false)
 Output text in color or bold.
 

Detailed Description

A set of functions for CLI scripts of Dolibarr This file contains only functions used by script run on command line.

Definition in file functionscli.lib.php.

Function Documentation

◆ coloredText()

coloredText ( $text,
$color,
$bold = false )

Output text in color or bold.

Parameters
string$textText to show
string$colorColor code
boolean$boldBold or not
Returns
string Text enhanced with colors

Definition at line 46 of file functionscli.lib.php.