Cli
This is the CLI interface for sabre-vobject.
- Full name:
\Sabre\VObject\Cli
Properties
quiet
No output.
showHelp
Help display.
format
Whether to spit out 'mimedir' or 'json' format.
pretty
JSON pretty print.
inputPath
Source file.
outputPath
Destination file.
stdout
output stream.
stdin
stdin.
stderr
stderr.
inputFormat
Input format (one of json or mimedir).
forgiving
Makes the parser less strict.
parser
Methods
main
Main function.
Parameters:
Parameter | Type | Description |
---|---|---|
$argv |
array |
showHelp
Shows the help message.
validate
Validates a VObject file.
Parameters:
Parameter | Type | Description |
---|---|---|
$vObj |
\Sabre\VObject\Component |
repair
Repairs a VObject file.
Parameters:
Parameter | Type | Description |
---|---|---|
$vObj |
\Sabre\VObject\Component |
convert
Converts a vObject file to a new format.
Parameters:
Parameter | Type | Description |
---|---|---|
$vObj |
\Sabre\VObject\Component |
color
Colorizes a file.
Parameters:
Parameter | Type | Description |
---|---|---|
$vObj |
\Sabre\VObject\Component |
colorize
Returns an ansi color string for a color name.
Parameters:
Parameter | Type | Description |
---|---|---|
$color |
string | |
$str |
mixed | |
$resetTo |
mixed |
cWrite
Writes out a string in specific color.
Parameters:
Parameter | Type | Description |
---|---|---|
$color |
string | |
$str |
string |
serializeComponent
Parameters:
Parameter | Type | Description |
---|---|---|
$vObj |
\Sabre\VObject\Component |
serializeProperty
Colorizes a property.
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
\Sabre\VObject\Property |
parseArguments
Parses the list of arguments.
Parameters:
Parameter | Type | Description |
---|---|---|
$argv |
array |
readInput
Reads the input file.
log
Sends a message to STDERR.
Parameters:
Parameter | Type | Description |
---|---|---|
$msg |
string | |
$color |
mixed |
Automatically generated on 2025-03-18