aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/command/client/stats.rs')
-rw-r--r--crates/turtle/src/command/client/stats.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/turtle/src/command/client/stats.rs b/crates/turtle/src/command/client/stats.rs
index 17432bb2..9ea5e283 100644
--- a/crates/turtle/src/command/client/stats.rs
+++ b/crates/turtle/src/command/client/stats.rs
@@ -4,7 +4,7 @@ use interim::parse_date_string;
use time::{Duration, OffsetDateTime, Time};
use crate::atuin_client::database::ClientSqlite;
-use crate::atuin_client::{database::current_context, settings::Settings, theme::Theme};
+use crate::atuin_client::{database::current_context, settings::Settings};
use crate::atuin_history::stats::{compute, pretty_print};
@@ -36,12 +36,7 @@ pub(crate) struct Cmd {
}
impl Cmd {
- pub(crate) async fn run(
- &self,
- db: &ClientSqlite,
- settings: &Settings,
- theme: &Theme,
- ) -> Result<()> {
+ pub(crate) async fn run(&self, db: &ClientSqlite, settings: &Settings) -> Result<()> {
let context = current_context().await?;
let words = if self.period.is_empty() {
String::from("all")
@@ -79,7 +74,7 @@ impl Cmd {
let stats = compute(settings, &history, self.count, self.ngram_size);
if let Some(stats) = stats {
- pretty_print(stats, self.ngram_size, theme);
+ pretty_print(stats, self.ngram_size);
}
Ok(())