jjpmann / php-hosts-manager
PHP CLI 用于管理本地 hosts 文件
v0.0.10
2018-01-11 15:37 UTC
Requires
- php: >=5.3.2
- symfony/console: ~2.0
- symfony/filesystem: ^2.7
- symfony/process: ^2.7
- symfony/yaml: ^2.7
Requires (Dev)
- mockery/mockery: ~0.9.1
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-09-14 00:12:01 UTC
README
PHP CLI 用于管理本地 hosts 文件
使用 https://gist.github.com/mikeflynn/4278796
安装
composer require jjpmann/php-hosts-manager
或全局
composer global require jjpmann/php-hosts-manager
快速入门
Hosts Manager version 0.5
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
add Add domain/host to hosts file.
check Check to see if domain/host exists in host file
help Displays help for a command
list Lists commands
remove Remove domain/host from hosts file.
rollback Reverts the last change.
update Update domain/host in hosts file.
待办事项
当主机已存在时停止 "添加" 操作添加测试- 添加一些功能