7fb619ef83Change name so it's more clear that it does double duty
Chris Bednarski
2015-03-29 01:38:25 -0700
434b1db36dCorrect output for enabled / disabled actions
Chris Bednarski
2015-03-29 01:15:37 -0700
4780643dc9Make on and off commands use the same function
Chris Bednarski
2015-03-29 01:13:30 -0700
e8acd27dc9Added aff command and MaybeSaveHostFile
Chris Bednarski
2015-03-28 23:34:08 -0700
9b4e4ba985Enable and disable return true / false if they did something
Chris Bednarski
2015-03-28 21:37:56 -0700
67a150f1dcChanged fix and ls so they don't require -f flag to work
Chris Bednarski
2015-03-28 18:10:35 -0700
d0930958bfSave will actually write to disk now
Chris Bednarski
2015-03-28 18:10:16 -0700
5f7587e540Updated readme, now do make && make install
Chris Bednarski
2015-03-28 18:09:50 -0700
d840489baaFix implementation for ls
Chris Bednarski
2015-03-22 01:42:08 -0700
93d4b5141bRemoved an unused function
Chris Bednarski
2015-03-22 00:45:10 -0700
5ebed2ed94Expanded tests for remove to test the full API
Chris Bednarski
2015-03-22 00:43:14 -0700
4975a4ac17Remove returns the number of items it acted upon
Chris Bednarski
2015-03-22 00:37:18 -0700
9ff5aa8d6aAdded tests for and fixed implementation for Add behavior with dupes and conflicts
Chris Bednarski
2015-03-22 00:28:16 -0700
204c8c8a94Added a doc comment for GetData
Chris Bednarski
2015-03-22 00:00:44 -0700
d6f1220a40Implemented a real Format call, and GetUniqueIPs to help
Chris Bednarski
2015-03-21 23:57:55 -0700
06850d8e7cAdd a trailing newline to the test case
Chris Bednarski
2015-03-21 23:56:10 -0700
930ad18681Uncommented test and fixed test case to match intended behavior
Chris Bednarski
2015-03-21 20:32:49 -0700
beb2cd3397Removed debug output
Chris Bednarski
2015-03-21 20:32:34 -0700
9aebb4b8ffFixed sorting so we can push 127 to the top the list
Chris Bednarski
2015-03-21 20:31:01 -0700
394f87d739Make sure coverage.html is generated when tests fail
Chris Bednarski
2015-03-21 20:23:37 -0700
69929e5749Added tests for hostname formatting
Chris Bednarski
2015-03-21 20:22:44 -0700
4867ad3e62Changed TestTrimWS to use Diff for output
Chris Bednarski
2015-03-21 20:22:32 -0700
1377ff4274Added MakeSurrogateIP to help with sorting
Chris Bednarski
2015-03-21 18:11:09 -0700
84a954d8bdRenamed a bunch of variables in Less so they're easier to follow in the code
Chris Bednarski
2015-03-21 17:43:27 -0700
c2dc0f5272Changed format to use byte arrays
Chris Bednarski
2015-03-21 17:18:54 -0700
60c5e85bc5Added filter functions
Chris Bednarski
2015-03-21 17:07:58 -0700
a689c99cf6Rearranged hostfile methods so they're declared before they're used, and grouped more logically
Chris Bednarski
2015-03-21 04:02:05 -0700
2e11cd9faeUncommented hostfile tests so we can make things work agian.
Chris Bednarski
2015-03-21 03:59:53 -0700
a79a8a0f71User /usr/local/bin
Chris Bednarski
2015-03-21 03:42:09 -0700
746f82d743Added some comments so golint is happy
Chris Bednarski
2015-03-21 03:01:41 -0700
b41ceb8798Removed even more unused code
Chris Bednarski
2015-03-21 02:40:19 -0700
17a11828bbDeleted tons of things; also changed env HOSTESS_FILE to HOSTESS_PATH
Chris Bednarski
2015-03-21 02:25:44 -0700
870b3f9756Fixed some makefile issues and a golint thingy
Chris Bednarski
2015-03-20 15:19:56 -0700
ee13a9f92bUpdate README.md
Chris Bednarski
2015-03-11 18:36:24 -0700
dffba8fcbaTweaked some comments for godoc
Chris Bednarski
2015-03-02 02:20:34 -0800
b1645b0f35Fixed a sort bug and added some more tests
Chris Bednarski
2015-03-02 01:46:12 -0800
bc9228e41bShould be 'complicated'
Chris Bednarski
2015-03-02 01:29:08 -0800
6b4ffb431bIn sort, skip comparing IPs if they're the same
Chris Bednarski
2015-03-02 01:28:10 -0800
ead114987dChanged Ip to IP for more consistent naming
Chris Bednarski
2015-03-02 01:25:25 -0800
3639cfd93bMore docs, fixed naming inconsistencies, moved formatting to Hostname methods
Chris Bednarski
2015-03-02 00:55:34 -0800
ebc96283b0Clean up some golint errors
Chris Bednarski
2015-03-02 00:22:05 -0800
aa239820f5Removed debug output
Chris Bednarski
2015-03-01 23:17:00 -0800
f2b81f9cd5Implemented domain sorting and added doc comments to hostlist
Chris Bednarski
2015-03-01 23:15:02 -0800
7f4f5d2b2eChanged to *V commands to switch between ipv4 and ipv6 functionality
Chris Bednarski
2015-03-01 21:54:51 -0800
293dcf6badUpdated test name since we test both
Chris Bednarski
2015-03-01 18:19:18 -0800
d1c7217fa4Added some tests
Chris Bednarski
2015-03-01 18:18:43 -0800
c90989dea0Implemented remove, copied format, tests, and stubs
Chris Bednarski
2015-03-01 18:10:01 -0800
c4a1076b01Renamed main.go to hostess.go so it will have the right name without having to use -o, more idiomatic
Chris Bednarski
2015-03-01 18:07:57 -0800
6b38e95bbaFixed add, remove is now failing the test (as expected)
Chris Bednarski
2015-02-25 02:37:57 -0800
f5dea78ac3Some preliminary work and a lot of commented code
Chris Bednarski
2015-02-25 02:33:18 -0800
1fdc180a62Added IPv6 note to readme
Chris Bednarski
2015-02-25 01:53:41 -0800
d658a40feaMoved go vet after tests have run, removed some @s
Chris Bednarski
2015-02-25 01:45:22 -0800
1b1671fca6Added go vet and silence most of the commands so make is less spammy
Chris Bednarski
2015-02-25 00:12:07 -0800
4a5e6a8e3cTweaked some names in hostlist to make implementation clearer, added todos
Chris Bednarski
2015-02-24 23:08:53 -0800
7a5ed98976Added tests for Equal() EqualIp() and IsValid()
Chris Bednarski
2015-02-24 23:06:30 -0800
3f456113bcAdded Hostname.Equal() .EqualIp() and .IsValid()
Chris Bednarski
2015-02-24 23:05:45 -0800
9e82a4a331Changed interface to NewHostname not to return error
Chris Bednarski
2015-02-24 23:04:27 -0800
ac2093932cChanged ip from string to net.IP and changed hostnames to pointers
Chris Bednarski
2015-02-24 04:17:31 -0800
896bc7deb0Moved TrimWS to where it's used
Chris Bednarski
2015-02-24 02:32:09 -0800
8632ff2f9aMoved other hostname test to hostname_test
Chris Bednarski
2015-02-24 02:17:01 -0800
5d8bcfff3aSeparated some tests from the hostfile_test file
Chris Bednarski
2015-02-24 02:15:23 -0800
b78c4b29ceChanged test to be in hostess_test package and updated tests to use public interface
Chris Bednarski
2015-02-24 01:54:33 -0800
e036b319cbAdded make clean
Chris Bednarski
2015-02-24 01:47:35 -0800
3863a6ed21Renamed hostess_test to hostfile_test so we can separate some of the tests
Chris Bednarski
2015-02-24 01:47:28 -0800
fcbebef177Fixed gox builds
Chris Bednarski
2015-02-24 01:43:33 -0800
c3b108ea9eMoved contents of lib back to the root
Chris Bednarski
2015-02-24 01:00:01 -0800
31fcc2ebb1Fix ignore file
Chris Bednarski
2015-02-24 00:58:01 -0800
44c76a91fdMoved main to cmd/hostess
Chris Bednarski
2015-02-24 00:57:54 -0800
d4c77d1a4bSeparated hostname, hostfile, and hostlist
Chris Bednarski
2015-02-24 00:55:24 -0800
f10f823044Whitespace
Chris Bednarski
2015-02-23 23:51:18 -0800
74812b4a49Added coverage to deps
Chris Bednarski
2015-02-23 23:49:55 -0800
598bfb7ecbAdded gox build
Chris Bednarski
2015-02-14 14:52:12 -0800
64caf045bcRearranged the package so go install will install the binary instead of some random crap
Chris Bednarski
2015-02-14 14:30:07 -0800
72c72f33feUpdate the makefile to look for the right file
Chris Bednarski
2015-02-14 13:52:45 -0800
b7da93ea54Renamed main to hostess so the binary matches the name of the app
Chris Bednarski
2015-02-14 13:52:32 -0800
5e4ff2e6ecAdded deps to makefile
Chris Bednarski
2015-02-14 12:05:20 -0800
39db28a677Reformat some help stuff
Chris Bednarski
2015-02-14 05:01:43 -0800
f8976dd0c2Shuffled help text so it's in better order
Chris Bednarski
2015-02-14 04:50:33 -0800
a7406bc7acMigrate usage / help to CLI framework
Chris Bednarski
2015-02-14 04:48:53 -0800
847ed06b43Cleanup old code
Chris Bednarski
2015-02-14 04:39:51 -0800
0750805cebAdded del and has and some helper functions
Chris Bednarski
2015-02-14 04:33:11 -0800
62832cd57bImplement ls command with alpha sorting and column alignment
Chris Bednarski
2015-02-14 03:40:31 -0800
ac92906cfcWrite errors to stderr instead of stdout
Chris Bednarski
2015-02-14 03:07:29 -0800
1e90d1336cImplemented add and fix with some error handling (no saving yet)
Chris Bednarski
2015-02-14 03:01:13 -0800
fba8a3d5a6Changed phrasing for -q and -s
Chris Bednarski
2015-02-14 00:56:06 -0800
4e6ae63efdAdded options to help
Chris Bednarski
2015-02-14 00:52:37 -0800
288ea72582Added help text
Chris Bednarski
2015-02-14 00:44:26 -0800
d40732868aAdded command stubs
Chris Bednarski
2015-02-14 00:21:20 -0800
bf622170cbAdded some more test coverage and expended the interface spec
Chris Bednarski
2015-02-05 23:41:17 -0800
0637c167f4Make runs test by default
Chris Bednarski
2015-02-04 21:21:03 -0800
160f534fd0Added travis ci
Chris Bednarski
2015-02-04 21:18:29 -0800
15fe9d2f9bAdded some commands in the readme
Chris Bednarski
2015-02-04 10:10:05 -0800
b52b8571fdFix parsing blank lines
Chris Bednarski
2015-02-04 09:57:46 -0800
546a3f9c37Replace make len 0 with var declarations
Chris Bednarski
2015-02-04 09:45:16 -0800
1c107c9c92Remove comments
Chris Bednarski
2015-02-04 09:40:26 -0800
e30fb0b80bRecursively remove extra whitespace
Chris Bednarski
2015-02-04 09:40:06 -0800
b194db21f8Removed redundant Trim calls and added Parse impl.
Chris Bednarski
2015-02-04 01:52:37 -0800
398e75a788Clarified phrasing
Chris Bednarski
2015-02-04 01:48:53 -0800
3a12716f8eTrim before splitting so extra spaces are cleared out
Chris Bednarski
2015-02-04 01:47:09 -0800
8a005b9e9fadded fuzzy matching for ipv4 and ipv6
Chris Bednarski
2015-02-04 01:45:30 -0800