/etc/hosts manager written in go lang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
README.md
build
circle.yml
coverage
hosty.go
hosty_test.go

README.md

hosty Circle CI

Usage

List all entries managed by hosty

$ hosty

Echo all /etc/hosts content

$ hosty cat

or

$ hosty c

Save an entry, use this to create or edit an entry

All new entries are enabled by default

$ sudo hosty save static 127.0.0.1 static.example.com

or

$ sudo hosty s static 127.0.0.1 static.example.com

Enable an entry

$ sudo hosty enable static

or

$ sudo hosty e static

Disable an entry

$ sudo hosty disable static

or

$ sudo hosty d static

Remove an entry

$ sudo hosty remove static

or

$ sudo hosty r static