Commit Graph

38 Commits (ebbdf23b34f59ddb7ac29263e51352494aacbf48)

Author SHA1 Message Date
Chris Bednarski a343a8e07f Fix missing windows test case, fmt 4 years ago
Chris Bednarski c4e4f6d820 Removed -4 and -6 from CLI (these are still usable in the lib) 4 years ago
Chris Bednarski df2d795268 Fix hostfile.Save() on Windows 4 years ago
Chris Bednarski 9c247955f6 go fmt 4 years ago
Chris Bednarski c53f06fdc8 Moved commands from commands package to root 4 years ago
Chris Bednarski 66670942dd Started major refactor for 0.5.0
- Rewrite CLI to use flag package instead of codegangsta/cli
- Move lib to hostess/ and move main.go to project root
- Change some of the hostess API to return errors instead of panicking
- Remove aff, del, and list commands
- Remove -s and -q flags
4 years ago
Chris Bednarski 831904824c Change parsing to return errors instead of silently truncating the hosts file; fixes #23 8 years ago
Chris Bednarski c8aa1a891b Added fixed command to get exit status 0/1 if hosts file is already formatted 8 years ago
Chris Bednarski 9ab36e01a3 Check command Bool or GlobalBool, not just Global. Fixes #21' 8 years ago
Chris Bednarski 2f077986f0 Change c.Bool to c.GlobalBool so we can detect flags when positioned between hostess and the subcommand 8 years ago
Chris Bednarski 35413097c7 Add test hosts file and basic test for Ls command; fix ls panic 8 years ago
Chris Bednarski 62e9ec8f9a Changed 'data' to 'jsonbytes' 9 years ago
Chris Bednarski 8eb33b712c Added dump and apply commands to provide JSON I/O 9 years ago
Chris Bednarski ec478bd0f0 Fix some docs 9 years ago
Chris Bednarski 400e163b66 Implement -n inside MaybeSaveHostFile 9 years ago
Chris Bednarski 7fb619ef83 Change name so it's more clear that it does double duty 9 years ago
Chris Bednarski 434b1db36d Correct output for enabled / disabled actions 9 years ago
Chris Bednarski 4780643dc9 Make on and off commands use the same function 9 years ago
Chris Bednarski e8acd27dc9 Added aff command and MaybeSaveHostFile 9 years ago
Chris Bednarski 67a150f1dc Changed fix and ls so they don't require -f flag to work 9 years ago
Chris Bednarski d840489baa Fix implementation for ls 9 years ago
Chris Bednarski 746f82d743 Added some comments so golint is happy 9 years ago
Chris Bednarski b41ceb8798 Removed even more unused code 9 years ago
Chris Bednarski b1645b0f35 Fixed a sort bug and added some more tests 9 years ago
Chris Bednarski 3639cfd93b More docs, fixed naming inconsistencies, moved formatting to Hostname methods 9 years ago
Chris Bednarski ebc96283b0 Clean up some golint errors 9 years ago
Chris Bednarski f5dea78ac3 Some preliminary work and a lot of commented code 9 years ago
Chris Bednarski 9e82a4a331 Changed interface to NewHostname not to return error
This is more succinct for most uses.
9 years ago
Chris Bednarski ac2093932c Changed ip from string to net.IP and changed hostnames to pointers 9 years ago
Chris Bednarski c3b108ea9e Moved contents of lib back to the root 9 years ago
Chris Bednarski 64caf045bc Rearranged the package so go install will install the binary instead of some random crap 10 years ago
Chris Bednarski 39db28a677 Reformat some help stuff 10 years ago
Chris Bednarski a7406bc7ac Migrate usage / help to CLI framework 10 years ago
Chris Bednarski 0750805ceb Added del and has and some helper functions 10 years ago
Chris Bednarski 62832cd57b Implement ls command with alpha sorting and column alignment 10 years ago
Chris Bednarski ac92906cfc Write errors to stderr instead of stdout 10 years ago
Chris Bednarski 1e90d1336c Implemented add and fix with some error handling (no saving yet) 10 years ago
Chris Bednarski d40732868a Added command stubs 10 years ago