Commit Graph

  • 7fb619ef83 Change name so it's more clear that it does double duty Chris Bednarski 2015-03-29 01:38:25 -0700
  • 434b1db36d Correct output for enabled / disabled actions Chris Bednarski 2015-03-29 01:15:37 -0700
  • 4780643dc9 Make on and off commands use the same function Chris Bednarski 2015-03-29 01:13:30 -0700
  • e8acd27dc9 Added aff command and MaybeSaveHostFile Chris Bednarski 2015-03-28 23:34:08 -0700
  • 9b4e4ba985 Enable and disable return true / false if they did something Chris Bednarski 2015-03-28 21:37:56 -0700
  • 67a150f1dc Changed fix and ls so they don't require -f flag to work Chris Bednarski 2015-03-28 18:10:35 -0700
  • d0930958bf Save will actually write to disk now Chris Bednarski 2015-03-28 18:10:16 -0700
  • 5f7587e540 Updated readme, now do make && make install Chris Bednarski 2015-03-28 18:09:50 -0700
  • d840489baa Fix implementation for ls Chris Bednarski 2015-03-22 01:42:08 -0700
  • 93d4b5141b Removed an unused function Chris Bednarski 2015-03-22 00:45:10 -0700
  • 5ebed2ed94 Expanded tests for remove to test the full API Chris Bednarski 2015-03-22 00:43:14 -0700
  • 4975a4ac17 Remove returns the number of items it acted upon Chris Bednarski 2015-03-22 00:37:18 -0700
  • 9ff5aa8d6a Added tests for and fixed implementation for Add behavior with dupes and conflicts Chris Bednarski 2015-03-22 00:28:16 -0700
  • 204c8c8a94 Added a doc comment for GetData Chris Bednarski 2015-03-22 00:00:44 -0700
  • d6f1220a40 Implemented a real Format call, and GetUniqueIPs to help Chris Bednarski 2015-03-21 23:57:55 -0700
  • 06850d8e7c Add a trailing newline to the test case Chris Bednarski 2015-03-21 23:56:10 -0700
  • 930ad18681 Uncommented test and fixed test case to match intended behavior Chris Bednarski 2015-03-21 20:32:49 -0700
  • beb2cd3397 Removed debug output Chris Bednarski 2015-03-21 20:32:34 -0700
  • 9aebb4b8ff Fixed sorting so we can push 127 to the top the list Chris Bednarski 2015-03-21 20:31:01 -0700
  • 394f87d739 Make sure coverage.html is generated when tests fail Chris Bednarski 2015-03-21 20:23:37 -0700
  • 69929e5749 Added tests for hostname formatting Chris Bednarski 2015-03-21 20:22:44 -0700
  • 4867ad3e62 Changed TestTrimWS to use Diff for output Chris Bednarski 2015-03-21 20:22:32 -0700
  • 1377ff4274 Added MakeSurrogateIP to help with sorting Chris Bednarski 2015-03-21 18:11:09 -0700
  • 84a954d8bd Renamed a bunch of variables in Less so they're easier to follow in the code Chris Bednarski 2015-03-21 17:43:27 -0700
  • c2dc0f5272 Changed format to use byte arrays Chris Bednarski 2015-03-21 17:18:54 -0700
  • 60c5e85bc5 Added filter functions Chris Bednarski 2015-03-21 17:07:58 -0700
  • a689c99cf6 Rearranged hostfile methods so they're declared before they're used, and grouped more logically Chris Bednarski 2015-03-21 04:02:05 -0700
  • 2e11cd9fae Uncommented hostfile tests so we can make things work agian. Chris Bednarski 2015-03-21 03:59:53 -0700
  • a79a8a0f71 User /usr/local/bin Chris Bednarski 2015-03-21 03:42:09 -0700
  • 746f82d743 Added some comments so golint is happy Chris Bednarski 2015-03-21 03:01:41 -0700
  • b41ceb8798 Removed even more unused code Chris Bednarski 2015-03-21 02:40:19 -0700
  • 17a11828bb Deleted tons of things; also changed env HOSTESS_FILE to HOSTESS_PATH Chris Bednarski 2015-03-21 02:25:44 -0700
  • 870b3f9756 Fixed some makefile issues and a golint thingy Chris Bednarski 2015-03-20 15:19:56 -0700
  • ee13a9f92b Update README.md Chris Bednarski 2015-03-11 18:36:24 -0700
  • dffba8fcba Tweaked some comments for godoc Chris Bednarski 2015-03-02 02:20:34 -0800
  • b1645b0f35 Fixed a sort bug and added some more tests Chris Bednarski 2015-03-02 01:46:12 -0800
  • bc9228e41b Should be 'complicated' Chris Bednarski 2015-03-02 01:29:08 -0800
  • 6b4ffb431b In sort, skip comparing IPs if they're the same Chris Bednarski 2015-03-02 01:28:10 -0800
  • ead114987d Changed Ip to IP for more consistent naming Chris Bednarski 2015-03-02 01:25:25 -0800
  • 3639cfd93b More docs, fixed naming inconsistencies, moved formatting to Hostname methods Chris Bednarski 2015-03-02 00:55:34 -0800
  • ebc96283b0 Clean up some golint errors Chris Bednarski 2015-03-02 00:22:05 -0800
  • aa239820f5 Removed debug output Chris Bednarski 2015-03-01 23:17:00 -0800
  • f2b81f9cd5 Implemented domain sorting and added doc comments to hostlist Chris Bednarski 2015-03-01 23:15:02 -0800
  • 7f4f5d2b2e Changed to *V commands to switch between ipv4 and ipv6 functionality Chris Bednarski 2015-03-01 21:54:51 -0800
  • 293dcf6bad Updated test name since we test both Chris Bednarski 2015-03-01 18:19:18 -0800
  • d1c7217fa4 Added some tests Chris Bednarski 2015-03-01 18:18:43 -0800
  • c90989dea0 Implemented remove, copied format, tests, and stubs Chris Bednarski 2015-03-01 18:10:01 -0800
  • c4a1076b01 Renamed 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
  • 6b38e95bba Fixed add, remove is now failing the test (as expected) Chris Bednarski 2015-02-25 02:37:57 -0800
  • f5dea78ac3 Some preliminary work and a lot of commented code Chris Bednarski 2015-02-25 02:33:18 -0800
  • 1fdc180a62 Added IPv6 note to readme Chris Bednarski 2015-02-25 01:53:41 -0800
  • d658a40fea Moved go vet after tests have run, removed some @s Chris Bednarski 2015-02-25 01:45:22 -0800
  • 1b1671fca6 Added go vet and silence most of the commands so make is less spammy Chris Bednarski 2015-02-25 00:12:07 -0800
  • 4a5e6a8e3c Tweaked some names in hostlist to make implementation clearer, added todos Chris Bednarski 2015-02-24 23:08:53 -0800
  • 7a5ed98976 Added tests for Equal() EqualIp() and IsValid() Chris Bednarski 2015-02-24 23:06:30 -0800
  • 3f456113bc Added Hostname.Equal() .EqualIp() and .IsValid() Chris Bednarski 2015-02-24 23:05:45 -0800
  • 9e82a4a331 Changed interface to NewHostname not to return error Chris Bednarski 2015-02-24 23:04:27 -0800
  • ac2093932c Changed ip from string to net.IP and changed hostnames to pointers Chris Bednarski 2015-02-24 04:17:31 -0800
  • 896bc7deb0 Moved TrimWS to where it's used Chris Bednarski 2015-02-24 02:32:09 -0800
  • 8632ff2f9a Moved other hostname test to hostname_test Chris Bednarski 2015-02-24 02:17:01 -0800
  • 5d8bcfff3a Separated some tests from the hostfile_test file Chris Bednarski 2015-02-24 02:15:23 -0800
  • b78c4b29ce Changed test to be in hostess_test package and updated tests to use public interface Chris Bednarski 2015-02-24 01:54:33 -0800
  • e036b319cb Added make clean Chris Bednarski 2015-02-24 01:47:35 -0800
  • 3863a6ed21 Renamed hostess_test to hostfile_test so we can separate some of the tests Chris Bednarski 2015-02-24 01:47:28 -0800
  • fcbebef177 Fixed gox builds Chris Bednarski 2015-02-24 01:43:33 -0800
  • c3b108ea9e Moved contents of lib back to the root Chris Bednarski 2015-02-24 01:00:01 -0800
  • 31fcc2ebb1 Fix ignore file Chris Bednarski 2015-02-24 00:58:01 -0800
  • 44c76a91fd Moved main to cmd/hostess Chris Bednarski 2015-02-24 00:57:54 -0800
  • d4c77d1a4b Separated hostname, hostfile, and hostlist Chris Bednarski 2015-02-24 00:55:24 -0800
  • f10f823044 Whitespace Chris Bednarski 2015-02-23 23:51:18 -0800
  • 74812b4a49 Added coverage to deps Chris Bednarski 2015-02-23 23:49:55 -0800
  • 598bfb7ecb Added gox build Chris Bednarski 2015-02-14 14:52:12 -0800
  • 64caf045bc Rearranged the package so go install will install the binary instead of some random crap Chris Bednarski 2015-02-14 14:30:07 -0800
  • 72c72f33fe Update the makefile to look for the right file Chris Bednarski 2015-02-14 13:52:45 -0800
  • b7da93ea54 Renamed main to hostess so the binary matches the name of the app Chris Bednarski 2015-02-14 13:52:32 -0800
  • 5e4ff2e6ec Added deps to makefile Chris Bednarski 2015-02-14 12:05:20 -0800
  • 39db28a677 Reformat some help stuff Chris Bednarski 2015-02-14 05:01:43 -0800
  • f8976dd0c2 Shuffled help text so it's in better order Chris Bednarski 2015-02-14 04:50:33 -0800
  • a7406bc7ac Migrate usage / help to CLI framework Chris Bednarski 2015-02-14 04:48:53 -0800
  • 847ed06b43 Cleanup old code Chris Bednarski 2015-02-14 04:39:51 -0800
  • 0750805ceb Added del and has and some helper functions Chris Bednarski 2015-02-14 04:33:11 -0800
  • 62832cd57b Implement ls command with alpha sorting and column alignment Chris Bednarski 2015-02-14 03:40:31 -0800
  • ac92906cfc Write errors to stderr instead of stdout Chris Bednarski 2015-02-14 03:07:29 -0800
  • 1e90d1336c Implemented add and fix with some error handling (no saving yet) Chris Bednarski 2015-02-14 03:01:13 -0800
  • fba8a3d5a6 Changed phrasing for -q and -s Chris Bednarski 2015-02-14 00:56:06 -0800
  • 4e6ae63efd Added options to help Chris Bednarski 2015-02-14 00:52:37 -0800
  • 288ea72582 Added help text Chris Bednarski 2015-02-14 00:44:26 -0800
  • d40732868a Added command stubs Chris Bednarski 2015-02-14 00:21:20 -0800
  • bf622170cb Added some more test coverage and expended the interface spec Chris Bednarski 2015-02-05 23:41:17 -0800
  • 0637c167f4 Make runs test by default Chris Bednarski 2015-02-04 21:21:03 -0800
  • 160f534fd0 Added travis ci Chris Bednarski 2015-02-04 21:18:29 -0800
  • 15fe9d2f9b Added some commands in the readme Chris Bednarski 2015-02-04 10:10:05 -0800
  • b52b8571fd Fix parsing blank lines Chris Bednarski 2015-02-04 09:57:46 -0800
  • 546a3f9c37 Replace make len 0 with var declarations Chris Bednarski 2015-02-04 09:45:16 -0800
  • 1c107c9c92 Remove comments Chris Bednarski 2015-02-04 09:40:26 -0800
  • e30fb0b80b Recursively remove extra whitespace Chris Bednarski 2015-02-04 09:40:06 -0800
  • b194db21f8 Removed redundant Trim calls and added Parse impl. Chris Bednarski 2015-02-04 01:52:37 -0800
  • 398e75a788 Clarified phrasing Chris Bednarski 2015-02-04 01:48:53 -0800
  • 3a12716f8e Trim before splitting so extra spaces are cleared out Chris Bednarski 2015-02-04 01:47:09 -0800
  • 8a005b9e9f added fuzzy matching for ipv4 and ipv6 Chris Bednarski 2015-02-04 01:45:30 -0800