Commit Graph

32 Commits (8c778ab2a72397cbf70e7c05ddf52c62ee99b77a)

Author SHA1 Message Date
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 9 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 10 years ago
Chris Bednarski 400e163b66 Implement -n inside MaybeSaveHostFile 10 years ago
Chris Bednarski 7fb619ef83 Change name so it's more clear that it does double duty 10 years ago
Chris Bednarski 434b1db36d Correct output for enabled / disabled actions 10 years ago
Chris Bednarski 4780643dc9 Make on and off commands use the same function 10 years ago
Chris Bednarski e8acd27dc9 Added aff command and MaybeSaveHostFile 10 years ago
Chris Bednarski 67a150f1dc Changed fix and ls so they don't require -f flag to work 10 years ago
Chris Bednarski d840489baa Fix implementation for ls 10 years ago
Chris Bednarski 746f82d743 Added some comments so golint is happy 10 years ago
Chris Bednarski b41ceb8798 Removed even more unused code 10 years ago
Chris Bednarski b1645b0f35 Fixed a sort bug and added some more tests 10 years ago
Chris Bednarski 3639cfd93b More docs, fixed naming inconsistencies, moved formatting to Hostname methods 10 years ago
Chris Bednarski ebc96283b0 Clean up some golint errors 10 years ago
Chris Bednarski f5dea78ac3 Some preliminary work and a lot of commented code 10 years ago
Chris Bednarski 9e82a4a331 Changed interface to NewHostname not to return error
This is more succinct for most uses.
10 years ago
Chris Bednarski ac2093932c Changed ip from string to net.IP and changed hostnames to pointers 10 years ago
Chris Bednarski c3b108ea9e Moved contents of lib back to the root 10 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