From 34e5d13fb32bb7038cc2fdc279bab155f2421563 Mon Sep 17 00:00:00 2001 From: Ryan Geary Date: Fri, 6 Sep 2019 11:52:18 -0400 Subject: Define Range and Choice types --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e505d6b..482fd0f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,16 @@ use std::fs::File; use std::io::{self, BufRead, BufReader, Read}; use std::path::PathBuf; +use std::num::ParseIntError; use structopt::StructOpt; +use regex::Regex; + +type Range = (Option, Option); + +enum Choice { + One(u32), + Range +} #[derive(Debug, StructOpt)] #[structopt(name = "choose", about = "`choose` sections from each line of files")] -- cgit v1.2.3