Bug Fixes
hostess fmt -n
works properly again, and has more specific behavior:hostess fmt
will replace duplicates without asking for helphostess fmt -n
will not replace duplicates, and will exit with error if any are found (#41)hostess fmt
with and without-n
will exit with error if conflicting hostnames are found because hostess cannot fix the conflicts
Bug Fixes
- Format will no longer exit with an error when encountering a duplicate entry (#39)
Breaking changes
- Windows now has a platform-specific hosts format with one IP and hostname per line
Bug Fixes
- Fix hostfiles not saving on Windows #27
0.4.0 is a major refactor of the frontend (CLI) focused on simplifying the UI and code, supporting newer Go tooling (i.e. go mod), and removing external dependencies.
Breaking Changes
- Moved CLI to
github.com/cbednarski/hostess
.go get
should now do what you probably wanted the first time. - Moved library to
github.com/cbednarski/hostess/hostess
- Many command aliases and flags have been removed
Hostlist.Enable
andHostlist.Disable
now return anerror
instead ofbool
. Check againstErrHostnameNotFound
.- Several functions will now return
ErrInvalidVersionArg
instead of panicking in that case
Improvements
- Removed
codegangsta/cli
- Removed
aff
command - Removed
del
command (userm
instead) - Removed
list
command (usels
instead) - Removed
fixed
command (just runfmt
) - Command
fix
renamed tofmt
- Removed
-s
and-q
flags. Errors are now shown always. Redirect stderr if you don't want to see them. - Removed
-f
from various commands. Usefmt
instead. - Added Go mod support
- Added AppVeyor for Windows builds
- Overhauled the Makefile for easier builds
Improvements
- 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
Bug Fixes
- Fix vendor path for
codegangsta/cli
Improvements
- Vendor
codegangsta/cli
for more reliable builds
Bug Fixes
- Fix panic in
hostess ls
#14 - Fix incompatible API in CLI library #15
Initial release