diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-03-10 21:24:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-10 21:24:08 +0000 |
| commit | 61607e023fbb916f376a7070f8b1ffd6ffe16849 (patch) | |
| tree | eadc28b084e0d07f6e3fd0fcaa4c74f2f840c04c /src/command/mod.rs | |
| parent | Really annoyed me today, so bump version (diff) | |
| download | atuin-61607e023fbb916f376a7070f8b1ffd6ffe16849.zip | |
Add config file support (#15)
Diffstat (limited to '')
| -rw-r--r-- | src/command/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command/mod.rs b/src/command/mod.rs index 0952540b..c74b138f 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -3,6 +3,7 @@ use structopt::StructOpt; use uuid::Uuid; use crate::local::database::Database; +use crate::settings::Settings; mod history; mod import; @@ -39,12 +40,12 @@ pub fn uuid_v4() -> String { } impl AtuinCmd { - pub fn run(self, db: &mut impl Database) -> Result<()> { + pub fn run(self, db: &mut impl Database, settings: &Settings) -> Result<()> { match self { Self::History(history) => history.run(db), Self::Import(import) => import.run(db), Self::Server(server) => server.run(), - Self::Stats(stats) => stats.run(db), + Self::Stats(stats) => stats.run(db, settings), Self::Init => init::init(), Self::Uuid => { |
