v0.3.0 `fixed` command and bugfixes

@cbednarski cbednarski released this Feb 19, 2018

Features

  • Added fixed subcommand which checks whether the hosts file is already formatted by hostess

Bug Fixes

  • Show an error when there is a parsing failure instead of silently truncating the hosts file
  • Global flags between hostess and the subcommand are no longer ignored
  • Binary should now display the correct version of the software

v0.2.0 - Vendor and bugfixes

@cbednarski cbednarski released this May 10, 2016 · 16 commits to master since this release

This release fixes the following issues:

Also, codegangsta/cli is now vendored, so you can install this from source via:

go install github.com/cbednarski/hostess/...

Or, grab a pre-compiled binary below!

Initial release

@cbednarski cbednarski released this Jun 6, 2015 · 30 commits to master since this release

The initial release supports most of the planned functionality. The project has finally reached a point where it makes sense to release a binary.

Supported Platforms

  • Tested on OSX, linux, and windows
  • Builds for x86, x64, and ARM

Major Features

hostess add domain ip   # Add or replace a hosts entry for this domain pointing to this IP
hostess aff domain ip   # Add or replace a hosts entry in an off state
hostess del domain      # (alias rm) Remove a domain from your hosts file
hostess has domain      # exit code 0 if the domain is in your hostfile, 1 otherwise
hostess off domain      # Disable a domain (but don't remove it completely), exit 1 if entry is missing
hostess on domain       # Re-enable a domain that was disabled, exit 1 if entry is missing
hostess list            # (alias ls) List domains, target ips, and on/off status
hostess fix             # Rewrite your hosts file; use -n to dry run
hostess dump            # Dump your hostfile as json
hostess apply           # Add entries from a json file

Flags

-n   # Dry run. Show what will happen but don't do it; output to stdout
-4   # Limit operation to ipv4 entries
-6   # Limit operation to ipv6 entries