summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorSam Tay <sam.chong.tay@gmail.com>2020-07-10 01:36:06 -0700
committerSam Tay <sam.chong.tay@gmail.com>2020-07-10 19:13:49 -0700
commita82f6e88847c3c655bfddeda17d3c957001380af (patch)
treeb3e5bb7375e768cd3d399952c38182d9c1461a13 /src/cli.rs
parent46e019ddf3b67a8307773edd109aa29d5be1a8b3 (diff)
Refactor term module
Move all of the mutable skin management within a Term struct. Also, just like the config refactor, move functions in term module up into Term implementation as associated functions
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index c8e4b41..af13f77 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -13,6 +13,7 @@ pub struct Opts {
pub config: Config,
}
+// TODO accept FnOnce() -> Result<Config> so I can test this
pub fn get_opts() -> Result<Opts> {
let config = Config::new()?;
let limit = &config.limit.to_string();