ConsoleOutput
in package
FinalYes
Defines console output helper functions
Table of Contents
Constants
- BLUE = "\x1b[36m"
- GRAY = "\x1b[90m"
- GREEN = "\x1b[32m"
- RED = "\x1b[31m"
- RESET = "\x1b[0m"
- YELLOW = "\x1b[33m"
Methods
- blank() : void
- Outputs new line to console
- error() : void
- Outputs error to console
- info() : void
- Outputs info to console
- line() : void
- Outputs a message to the console
- success() : void
- Outputs success to console
- table() : void
- Outputs a table to console
- warn() : void
- Outputs warning to console
Constants
BLUE
private
string
BLUE
= "\x1b[36m"
ANSI blue color
GRAY
private
string
GRAY
= "\x1b[90m"
ANSI grey color
GREEN
private
string
GREEN
= "\x1b[32m"
ANSI green color
RED
private
string
RED
= "\x1b[31m"
ANIS red color
RESET
private
string
RESET
= "\x1b[0m"
YELLOW
private
string
YELLOW
= "\x1b[33m"
ANSI yellow color
Methods
blank()
Outputs new line to console
public
blank() : void
error()
Outputs error to console
public
error(string $message) : void
Parameters
- $message : string
info()
Outputs info to console
public
info(string $message) : void
Parameters
- $message : string
line()
Outputs a message to the console
public
line([string $message = "" ]) : void
Parameters
- $message : string = ""
success()
Outputs success to console
public
success(string $message) : void
Parameters
- $message : string
table()
Outputs a table to console
public
table(array<string|int, mixed> $headers, array<string|int, mixed> $rows) : void
Parameters
- $headers : array<string|int, mixed>
- $rows : array<string|int, mixed>
warn()
Outputs warning to console
public
warn(string $message) : void
Parameters
- $message : string