Commit Graph

137 Commits (4203437444996e8d63026ebad013cd696962cf10)
 

Author SHA1 Message Date
Chris Bednarski 4203437444 Added some dots to the makefile so everything runs with vet and test and such 9 years ago
Chris Bednarski b9a25f7aaf Updated the readme 9 years ago
Chris Bednarski cb473d396d Tweak some help text and variable names 9 years ago
Chris Bednarski 429fd977dc Added go get for testify -- not sure why this is needed 9 years ago
Chris Bednarski 182feec8c1 Change some tests to use testify/assert 9 years ago
Chris Bednarski 74f1e08361 Renamed some variables so the intent is clearer 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 46ea48f8e1 This functionality has been superseded by the fix command 9 years ago
Chris Bednarski ec478bd0f0 Fix some docs 10 years ago
Chris Bednarski 400e163b66 Implement -n inside MaybeSaveHostFile 10 years ago
Chris Bednarski ba0968a19d 0/1 failure cases are clever, but inconsistent, so let's not do that. 10 years ago
Chris Bednarski 1b4067c3e9 Clarified aliases 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 9b4e4ba985 Enable and disable return true / false if they did something 10 years ago
Chris Bednarski 67a150f1dc Changed fix and ls so they don't require -f flag to work 10 years ago
Chris Bednarski d0930958bf Save will actually write to disk now 10 years ago
Chris Bednarski 5f7587e540 Updated readme, now do make && make install 10 years ago
Chris Bednarski d840489baa Fix implementation for ls 10 years ago
Chris Bednarski 93d4b5141b Removed an unused function 10 years ago
Chris Bednarski 5ebed2ed94 Expanded tests for remove to test the full API 10 years ago
Chris Bednarski 4975a4ac17 Remove returns the number of items it acted upon 10 years ago
Chris Bednarski 9ff5aa8d6a Added tests for and fixed implementation for Add behavior with dupes and conflicts 10 years ago
Chris Bednarski 204c8c8a94 Added a doc comment for GetData 10 years ago
Chris Bednarski d6f1220a40 Implemented a real Format call, and GetUniqueIPs to help 10 years ago
Chris Bednarski 06850d8e7c Add a trailing newline to the test case 10 years ago
Chris Bednarski 930ad18681 Uncommented test and fixed test case to match intended behavior 10 years ago
Chris Bednarski beb2cd3397 Removed debug output 10 years ago
Chris Bednarski 9aebb4b8ff Fixed sorting so we can push 127 to the top the list 10 years ago
Chris Bednarski 394f87d739 Make sure coverage.html is generated when tests fail
This has a side effect of making vet and lint run even if tests fail,
which maybe undesirable.
10 years ago
Chris Bednarski 69929e5749 Added tests for hostname formatting 10 years ago
Chris Bednarski 4867ad3e62 Changed TestTrimWS to use Diff for output 10 years ago
Chris Bednarski 1377ff4274 Added MakeSurrogateIP to help with sorting 10 years ago
Chris Bednarski 84a954d8bd Renamed a bunch of variables in Less so they're easier to follow in the code 10 years ago
Chris Bednarski c2dc0f5272 Changed format to use byte arrays 10 years ago
Chris Bednarski 60c5e85bc5 Added filter functions
- Filter by IP
- Filter by Domain
- Filter by Domain and IPv4/6
- Also move GetHostsPath to NewHostfile
- Also Removed a bunch of bad tests
10 years ago
Chris Bednarski a689c99cf6 Rearranged hostfile methods so they're declared before they're used, and grouped more logically 10 years ago
Chris Bednarski 2e11cd9fae Uncommented hostfile tests so we can make things work agian. 10 years ago
Chris Bednarski a79a8a0f71 User /usr/local/bin 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 17a11828bb Deleted tons of things; also changed env HOSTESS_FILE to HOSTESS_PATH 10 years ago
Chris Bednarski 870b3f9756 Fixed some makefile issues and a golint thingy 10 years ago
Chris Bednarski ee13a9f92b Update README.md 10 years ago
Chris Bednarski dffba8fcba Tweaked some comments for godoc 10 years ago
Chris Bednarski b1645b0f35 Fixed a sort bug and added some more tests 10 years ago
Chris Bednarski bc9228e41b Should be 'complicated' 10 years ago