command
module
Version:
v0.0.0-...-277f8b8
Opens a new window with list of versions in this module.
Published: Oct 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Hosts Group
inspire from SwitchHosts
Just webserver, provide curd api to management hosts file.
hosts file location:
- Windows
C:\Windows\System32\drivers\etc\hosts
- Linux
/etc/hosts
Support nginx
sudo ./hosts-group -mode nginx -f /etc/nginx/conf.d/static.conf
Version
1.4.0
- simple support nginx config
TODO
- independent window
Install
- https://codemirror.net/5/ 或者 https://codemirror.net/5/codemirror.zip 下载后,复制对应文件到项目目录中
Linux
go install
Windows
make buildExe
- only support build via linux ...
- run hosts-group.xxx.exe on Windows
Administer
blog: exe add icon
Dev Tips
hosts
go run . -d -D
nginx
go build && sudo ./hosts-group -d -D -mode nginx -f /etc/nginx/conf.d/static.conf
TODO
- js 文件缺失
- Linux编译打包流程未抽出来
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.