Commit Graph

95 Commits

Author SHA1 Message Date
Chris Bednarski
746f82d743 Added some comments so golint is happy 2015-03-21 03:01:41 -07:00
Chris Bednarski
b41ceb8798 Removed even more unused code 2015-03-21 02:40:19 -07:00
Chris Bednarski
17a11828bb Deleted tons of things; also changed env HOSTESS_FILE to HOSTESS_PATH 2015-03-21 02:25:44 -07:00
Chris Bednarski
870b3f9756 Fixed some makefile issues and a golint thingy 2015-03-20 15:19:56 -07:00
Chris Bednarski
ee13a9f92b Update README.md 2015-03-11 18:36:24 -07:00
Chris Bednarski
dffba8fcba Tweaked some comments for godoc 2015-03-02 02:20:34 -08:00
Chris Bednarski
b1645b0f35 Fixed a sort bug and added some more tests 2015-03-02 01:46:12 -08:00
Chris Bednarski
bc9228e41b Should be 'complicated' 2015-03-02 01:29:08 -08:00
Chris Bednarski
6b4ffb431b In sort, skip comparing IPs if they're the same 2015-03-02 01:28:10 -08:00
Chris Bednarski
ead114987d Changed Ip to IP for more consistent naming 2015-03-02 01:25:25 -08:00
Chris Bednarski
3639cfd93b More docs, fixed naming inconsistencies, moved formatting to Hostname methods 2015-03-02 00:55:34 -08:00
Chris Bednarski
ebc96283b0 Clean up some golint errors 2015-03-02 00:22:05 -08:00
Chris Bednarski
aa239820f5 Removed debug output 2015-03-01 23:17:00 -08:00
Chris Bednarski
f2b81f9cd5 Implemented domain sorting and added doc comments to hostlist 2015-03-01 23:15:02 -08:00
Chris Bednarski
7f4f5d2b2e Changed to *V commands to switch between ipv4 and ipv6 functionality 2015-03-01 21:54:51 -08:00
Chris Bednarski
293dcf6bad Updated test name since we test both 2015-03-01 18:19:18 -08:00
Chris Bednarski
d1c7217fa4 Added some tests 2015-03-01 18:18:43 -08:00
Chris Bednarski
c90989dea0 Implemented remove, copied format, tests, and stubs 2015-03-01 18:10:01 -08:00
Chris Bednarski
c4a1076b01 Renamed main.go to hostess.go so it will have the right name without having to use -o, more idiomatic 2015-03-01 18:07:57 -08:00
Chris Bednarski
6b38e95bba Fixed add, remove is now failing the test (as expected) 2015-02-25 02:37:57 -08:00
Chris Bednarski
f5dea78ac3 Some preliminary work and a lot of commented code 2015-02-25 02:33:18 -08:00
Chris Bednarski
1fdc180a62 Added IPv6 note to readme 2015-02-25 01:53:41 -08:00
Chris Bednarski
d658a40fea Moved go vet after tests have run, removed some @s 2015-02-25 01:45:22 -08:00
Chris Bednarski
1b1671fca6 Added go vet and silence most of the commands so make is less spammy 2015-02-25 00:12:07 -08:00
Chris Bednarski
4a5e6a8e3c Tweaked some names in hostlist to make implementation clearer, added todos 2015-02-24 23:08:53 -08:00
Chris Bednarski
7a5ed98976 Added tests for Equal() EqualIp() and IsValid() 2015-02-24 23:06:30 -08:00
Chris Bednarski
3f456113bc Added Hostname.Equal() .EqualIp() and .IsValid()
IsValid provides error-checking in a non-intrusive way
2015-02-24 23:05:45 -08:00
Chris Bednarski
9e82a4a331 Changed interface to NewHostname not to return error
This is more succinct for most uses.
2015-02-24 23:04:27 -08:00
Chris Bednarski
ac2093932c Changed ip from string to net.IP and changed hostnames to pointers 2015-02-24 04:17:31 -08:00
Chris Bednarski
896bc7deb0 Moved TrimWS to where it's used 2015-02-24 02:32:09 -08:00
Chris Bednarski
8632ff2f9a Moved other hostname test to hostname_test 2015-02-24 02:17:01 -08:00
Chris Bednarski
5d8bcfff3a Separated some tests from the hostfile_test file 2015-02-24 02:15:23 -08:00
Chris Bednarski
b78c4b29ce Changed test to be in hostess_test package and updated tests to use public interface 2015-02-24 01:54:33 -08:00
Chris Bednarski
e036b319cb Added make clean 2015-02-24 01:47:35 -08:00
Chris Bednarski
3863a6ed21 Renamed hostess_test to hostfile_test so we can separate some of the tests 2015-02-24 01:47:28 -08:00
Chris Bednarski
fcbebef177 Fixed gox builds 2015-02-24 01:43:33 -08:00
Chris Bednarski
c3b108ea9e Moved contents of lib back to the root 2015-02-24 01:00:01 -08:00
Chris Bednarski
31fcc2ebb1 Fix ignore file 2015-02-24 00:58:01 -08:00
Chris Bednarski
44c76a91fd Moved main to cmd/hostess 2015-02-24 00:57:54 -08:00
Chris Bednarski
d4c77d1a4b Separated hostname, hostfile, and hostlist 2015-02-24 00:55:24 -08:00
Chris Bednarski
f10f823044 Whitespace 2015-02-23 23:51:18 -08:00
Chris Bednarski
74812b4a49 Added coverage to deps 2015-02-23 23:49:55 -08:00
Chris Bednarski
598bfb7ecb Added gox build 2015-02-14 14:52:12 -08:00
Chris Bednarski
64caf045bc Rearranged the package so go install will install the binary instead of some random crap 2015-02-14 14:30:07 -08:00
Chris Bednarski
72c72f33fe Update the makefile to look for the right file 2015-02-14 13:52:45 -08:00
Chris Bednarski
b7da93ea54 Renamed main to hostess so the binary matches the name of the app 2015-02-14 13:52:32 -08:00
Chris Bednarski
5e4ff2e6ec Added deps to makefile 2015-02-14 12:05:20 -08:00
Chris Bednarski
39db28a677 Reformat some help stuff 2015-02-14 05:01:43 -08:00
Chris Bednarski
f8976dd0c2 Shuffled help text so it's in better order 2015-02-14 04:50:33 -08:00
Chris Bednarski
a7406bc7ac Migrate usage / help to CLI framework 2015-02-14 04:48:53 -08:00