PHP Interface pharext\Command

Datei anzeigen Open project: m6w6/pharext

Public Methods

Method Description
debug ( string $fmt ) Print debug message
error ( string $fmt ) Print error
getArgs ( ) : pharext\Cli\Args Retrieve command line arguments
info ( string $fmt ) Print info
run ( integer $argc, array $argv ) Execute the command
warn ( string $fmt ) Print warning

Method Details

debug() public method

Print debug message
public debug ( string $fmt )
$fmt string

error() public method

Print error
public error ( string $fmt )
$fmt string

getArgs() public method

Retrieve command line arguments
public getArgs ( ) : pharext\Cli\Args
return pharext\Cli\Args

info() public method

Print info
public info ( string $fmt )
$fmt string

run() public method

Execute the command
public run ( integer $argc, array $argv )
$argc integer command line argument count
$argv array command line argument list

warn() public method

Print warning
public warn ( string $fmt )
$fmt string