CLI-related library. Currently provides Process- and Screen-related helper classes.
Just some usage examples. Please check our source code, as all useful public methods should carry a nice documentation.
This is what you'll see in your process list:
use gipfl\Cli\Process;
Process::setTitle('mydaemon: doing something');
The new process will run in the same process space, after being started with the very same binary, given the same parameters and the the same environment:
Process::restart();
use gipfl\Cli\Screen;
$screen = Screen::instance();
echo $screen->center($screen->underline('Hello world'));
echo Screen::instance()->colorize('OK', 'green') . ": everything is fine!\n"'
- dependencies: support react/promise v2 and v3
- Process: fix restart when started from a shell
- Introduce Spinner
- Process::restart() and related helper methods
- Screen helpers
- First release