Commit Graph

44 Commits

Author SHA1 Message Date
Chris Bednarski
0750805ceb Added del and has and some helper functions 2015-02-14 04:33:11 -08:00
Chris Bednarski
62832cd57b Implement ls command with alpha sorting and column alignment 2015-02-14 03:40:31 -08:00
Chris Bednarski
ac92906cfc Write errors to stderr instead of stdout 2015-02-14 03:07:29 -08:00
Chris Bednarski
1e90d1336c Implemented add and fix with some error handling (no saving yet) 2015-02-14 03:01:13 -08:00
Chris Bednarski
fba8a3d5a6 Changed phrasing for -q and -s 2015-02-14 00:56:06 -08:00
Chris Bednarski
4e6ae63efd Added options to help 2015-02-14 00:52:37 -08:00
Chris Bednarski
288ea72582 Added help text 2015-02-14 00:44:26 -08:00
Chris Bednarski
d40732868a Added command stubs 2015-02-14 00:21:20 -08:00
Chris Bednarski
bf622170cb Added some more test coverage and expended the interface spec 2015-02-05 23:41:17 -08:00
Chris Bednarski
0637c167f4 Make runs test by default 2015-02-04 21:21:03 -08:00
Chris Bednarski
160f534fd0 Added travis ci 2015-02-04 21:18:29 -08:00
Chris Bednarski
15fe9d2f9b Added some commands in the readme 2015-02-04 10:10:05 -08:00
Chris Bednarski
b52b8571fd Fix parsing blank lines 2015-02-04 09:57:46 -08:00
Chris Bednarski
546a3f9c37 Replace make len 0 with var declarations 2015-02-04 09:45:16 -08:00
Chris Bednarski
1c107c9c92 Remove comments 2015-02-04 09:40:26 -08:00
Chris Bednarski
e30fb0b80b Recursively remove extra whitespace 2015-02-04 09:40:06 -08:00
Chris Bednarski
b194db21f8 Removed redundant Trim calls and added Parse impl. 2015-02-04 01:52:37 -08:00
Chris Bednarski
398e75a788 Clarified phrasing 2015-02-04 01:48:53 -08:00
Chris Bednarski
3a12716f8e Trim before splitting so extra spaces are cleared out 2015-02-04 01:47:09 -08:00
Chris Bednarski
8a005b9e9f added fuzzy matching for ipv4 and ipv6 2015-02-04 01:45:30 -08:00
Chris Bednarski
183432da2b Moved parseLine after its dependent functions 2015-02-04 00:36:08 -08:00
Chris Bednarski
9423364cea Added implementation for parseLine; missing LooksLikeIp 2015-02-04 00:35:29 -08:00
Chris Bednarski
06987f28c7 Added a todo for a test case 2015-02-04 00:17:13 -08:00
Chris Bednarski
197eff7a04 Added test cases for parseLine 2015-02-04 00:14:46 -08:00
Chris Bednarski
92d4245f14 Added some fancy words to the readme 2015-02-03 00:14:07 -08:00
Chris Bednarski
74d05983fb Whitespace 2015-02-03 00:06:20 -08:00
Chris Bednarski
96ccb78f8f TestFormatHostfile now passes consistently and is not subject to random map order bullshit 2015-02-03 00:02:28 -08:00
Chris Bednarski
d22909dcb0 Moved special localhost logic into a reusable funciton 2015-02-02 23:57:03 -08:00
Chris Bednarski
3d407ae410 Added TrimWS (whitespace) and ListDomainsByIp 2015-02-02 23:51:04 -08:00
Chris Bednarski
0c04cfa0dd Implemented Hostfile.Format; tests pass intermittently because of map randomization 2015-02-01 02:47:58 -08:00
Chris Bednarski
d99bad7475 Added more tests and implemented part of the output bits 2015-02-01 00:38:28 -08:00
Chris Bednarski
6916ce2634 Cleanup some compilation errors 2015-01-31 19:36:52 -08:00
Chris Bednarski
0bfec2ec96 Moved main.go to the cmd folder so it's in its own package 2015-01-31 19:23:19 -08:00
Chris Bednarski
901f425828 Changed interface for Hostfile so names are better
- Dump to export
- Read to import
2015-01-31 19:23:05 -08:00
Chris Bednarski
b3afbcc99a Changed tests to use Errorf in most places 2015-01-31 19:22:07 -08:00
Chris Bednarski
d809b75d3b Moved hostess functionality into hostess package, added tests 2015-01-31 18:20:42 -08:00
Chris Bednarski
ada8f87bd7 Added default hosts entries for OSX and Ubuntu 2015-01-30 21:45:20 -08:00
Chris Bednarski
dcb865e20a Added map mutator methods 2015-01-29 23:38:57 -08:00
Chris Bednarski
04daba950e Merge branch 'master' of github.com:cbednarski/hostess 2015-01-29 22:46:12 -08:00
Chris Bednarski
b6c4a6a432 Added makefile and main application 2015-01-29 22:46:05 -08:00
Chris Bednarski
94fcd41d83 Ignore the binary 2015-01-29 22:45:44 -08:00
Chris Bednarski
46984138de Update README.md 2015-01-17 01:27:09 -08:00
Chris Bednarski
b72303cc2e Create README.md 2015-01-17 01:25:28 -08:00
Chris Bednarski
faac0b2bbc Initial commit 2015-01-17 00:57:53 -08:00