Lines Matching full:the

59 The basic usage is simple:
62 - implement the ```setup($options)``` method and register options, arguments, commands and set help…
67 - implement the ```main($options)``` method and do your business logic there
69 - ``$options->getArgs()`` returns the remaining arguments after removing the options
70 - ``$options->getCmd()`` returns the sub command the user used
73 More examples can be found in the examples directory. Please refer to the [API docs](https://splitb…
78 By default, the CLI class registers an exception handler and will print the exception's message to
79 exit the programm with a non-zero exit code. You can disable this behaviour and catch all exception…
80 passing false to the constructor.
82 You can use the provided ``splitbrain\phpcli\Exception`` to signal any problems within your main co…
83 exception's code will be used as the exit code then.
89 Colored output is handled through the ``Colors`` class. It tries to detect if a color terminal is a…
91 Disabling colors will also disable the emoticon prefixes.
93 Simple colored log messages can be printed by you using the convinence methods ``success()`` (green…
94 ``error()`` (red) or ``fatal()`` (red). The latter will also exit the programm with a non-zero exit…
96 For more complex coloring you can access the color class through ``$this->colors`` in your script.
99 The table formatter allows coloring full columns. To use that mechanism pass an array of colors as …
100 its ``format()`` method. Please note that you can not pass colored texts in the second parameters (…
105 The ``TableFormatter`` class allows you to align texts in multiple columns. It tries to figure out
108 The formatter is used through the ``format()`` method which expects at least two arrays: The first …
109 widths, the second contains the texts to fill into the columns. Between each column a border is pri…
112 See the ``example/table.php`` for sample usage.
120 When mixing fixed and percentage widths, percentages refer to the remaining space after all fixed c…
126 The table formatter is used for the automatic help screen accessible when calling your script with …
130 The CLI class is a fully PSR-3 compatible logger (printing colored log data to STDOUT and STDERR). …
133 …f you need to pass a class implementing the `Psr\Log\LoggerInterface` you can do so by inheriting …
138 The resulting object then can be passed as the logger instance. The difference between the two is i…
140 Note: if your backend code calls for a PSR-3 logger but does not actually type check for the interf…
144 You can adjust the verbosity of your CLI tool using the `--loglevel` parameter. Supported loglevels…
162 The default log level of your script can be set by overwriting the `$logdefault` member.