Skip to content

viartos/host-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

host-manager

Simple console local hosts editor

###Build

make build

###Usage

####Add site.loc to /etc/hosts:

  • MacOS:
sudo ./bin/darwin-amd64 -d site.loc -add
  • Linux:
sudo ./bin/linux-amd64 -d site.loc -add

####Remove site.loc from /etc/hosts:

  • MacOS:
sudo ./bin/darwin-amd64 -d site.loc -rm
  • Linux:
sudo ./bin/linux-amd64 -d site.loc -rm