aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/mod.rs
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-03-10 21:24:08 +0000
committerGitHub <noreply@github.com>2021-03-10 21:24:08 +0000
commit61607e023fbb916f376a7070f8b1ffd6ffe16849 (patch)
treeeadc28b084e0d07f6e3fd0fcaa4c74f2f840c04c /src/command/mod.rs
parentReally annoyed me today, so bump version (diff)
downloadatuin-61607e023fbb916f376a7070f8b1ffd6ffe16849.zip
Add config file support (#15)
Diffstat (limited to 'src/command/mod.rs')
-rw-r--r--src/command/mod.rs5
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 => {