Command deprecated
class Command
deprecated
Methods
string
__toString()
Returns command as string.
static string
escape(string $input)
Escapes special chars from input.
static string
quote(string $input)
Quotes input.
int
length()
Counts bits stored in command.
Closure|null
getErrorHandler()
No description
array
execute()
Executes current command.
string
join()
Joins bits.
addAtIndex(string|Command $bit, int $index)
Insert a string or a Command instance before the bit at given position $index (index starts from 0).
Details
at line line 48
__construct(Command $parent = null)
Constructor.
at line line 58
string
__toString()
Returns command as string.
at line line 82
static string
escape(string $input)
Escapes special chars from input.
at line line 94
static string
quote(string $input)
Quotes input.
at line line 138
Command
arg(string $arg)
Appends an argument, will be quoted.
at line line 152
Command
cmd(string $esc)
Appends escaped special command chars.
at line line 168
Command
ins(string $label)
Inserts a labeled command to feed later.
at line line 189
Command
get(string $label)
Retrieves a previously labeled command.
at line line 205
Command
end()
Returns parent command (if any).
at line line 219
int
length()
Counts bits stored in command.
at line line 239
Closure|null
getErrorHandler()
at line line 251
array
execute()
Executes current command.
at line line 274
string
join()
Joins bits.