Commit graph

81 commits

Author SHA1 Message Date
Ryan Geary
5a5a77e88f Unify enumerating lines in print_choice 2019-09-11 11:52:20 -04:00
Ryan Geary
18dcf845fb Add choose 12 test 2019-09-11 11:50:49 -04:00
Ryan Geary
44e5446992 Rename test to e2e_test 2019-09-10 23:51:59 -04:00
Ryan Geary
1d4fd6f48e Ignore all whitespace in testing 2019-09-10 23:51:21 -04:00
Ryan Geary
e7197092b5 Validate vector indeces 2019-09-10 23:51:01 -04:00
Ryan Geary
4b6d44e121 Add basic test suite 2019-09-10 23:36:39 -04:00
Ryan Geary
ddf563d41b Allow for inclusive ranges and move choice parsing into Choice enum 2019-09-10 22:15:57 -04:00
Ryan Geary
8a430e0fdf Update choice help document 2019-09-10 22:14:42 -04:00
Ryan Geary
121d2f9d5a Add Range printing 2019-09-10 21:06:35 -04:00
Ryan Geary
5373821427 RustFmt 2019-09-10 21:06:20 -04:00
Ryan Geary
42b1af66a6 Iterate through lines and choices 2019-09-10 17:59:42 -04:00
Ryan Geary
055f38a9ba Add flag for input file, change inclusive short to n 2019-09-06 17:51:25 -04:00
Ryan Geary
97ef864782 Apply RustFmt 2019-09-06 17:14:03 -04:00
Ryan Geary
be24d64a60 change parse_range -> parse_choice 2019-09-06 16:26:26 -04:00
Ryan Geary
2b299ad9c1 Parse single field numbers 2019-09-06 16:21:13 -04:00
Ryan Geary
8da5f639ed Change arg from Range to Choice 2019-09-06 16:01:21 -04:00
Ryan Geary
2779ed3983 Rework Choice struct 2019-09-06 15:59:53 -04:00
Ryan Geary
1ac2906146 Handle errors in parse_range 2019-09-06 13:28:06 -04:00
Ryan Geary
46d79d7250 Add explicit dyn before Traits 2019-09-06 13:27:38 -04:00
Ryan Geary
b7c14b9c2d Take one range 2019-09-06 11:54:47 -04:00
Ryan Geary
3fdd3da507 Make field_separator an Option<> 2019-09-06 11:54:25 -04:00
Ryan Geary
bec5f2be5c Add parse_range function 2019-09-06 11:54:05 -04:00
Ryan Geary
34e5d13fb3 Define Range and Choice types 2019-09-06 11:52:18 -04:00
Ryan Geary
4596796a14 Add regex package 2019-09-06 11:50:22 -04:00
Ryan Geary
b1baf8f9b3 Start parsing command line and reading input file 2019-09-02 00:27:56 -04:00
Ryan Geary
76a6d3e53b Add structopt dependency 2019-09-02 00:27:20 -04:00
Ryan Geary
fc37f66d82 Revise usage statement 2019-09-01 21:14:49 -04:00
Ryan Geary
21a25c55e7 Add readme with Rationale and expected Usage 2019-09-01 20:52:02 -04:00
Ryan Geary
caf88cde61 Add Cargo.lock 2019-09-01 20:23:40 -04:00
Ryan Geary
68b783f311 Add Cargo.toml 2019-09-01 20:23:29 -04:00
Ryan Geary
304e4f2a68 Add gitignore 2019-09-01 20:22:07 -04:00