graze / buffered-console
0.6.2
2018-06-22 14:35 UTC
Requires
- php: ^5.6 | ^7.0
- symfony/console: ^2.8 | ^3.2 | ^4.0
Requires (Dev)
- graze/standards: ^2.0
- mockery/mockery: ^1
- phpunit/phpunit: ^5.7.21 | ^6 | ^7
- squizlabs/php_codesniffer: ^3
README
仅将更改的内容渲染到控制台。
用法
$output = new DiffConsoleOutput($existing); $output->reWrite([ 'first line', 'second line', ]); $output->reWrite([ 'first line here', 'second line', ]);
这将导航到第一行的末尾并将光标移动到 这里
,然后导航回末尾。
- 支持格式化
- 支持 ANSI 控制码
- 根据终端大小自动换行
- 可以根据终端大小进行修剪
- 将只写入用户可见的行数
安装
通过 Composer
$ composer require graze/console-diff-renderer
开发
$ make build
测试
$ make test
贡献
请参阅 CONTRIBUTING 获取详细信息。
安全
如果您发现任何安全相关的问题,请通过电子邮件 security@graze.com 而不是使用问题跟踪器。
致谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 获取更多信息。