diff options
author | Sam Tay <sam.chong.tay@gmail.com> | 2020-07-10 01:36:06 -0700 |
---|---|---|
committer | Sam Tay <sam.chong.tay@gmail.com> | 2020-07-10 19:13:49 -0700 |
commit | a82f6e88847c3c655bfddeda17d3c957001380af (patch) | |
tree | b3e5bb7375e768cd3d399952c38182d9c1461a13 /src/cli.rs | |
parent | 46e019ddf3b67a8307773edd109aa29d5be1a8b3 (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.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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(); |