aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/wrapped.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-12 17:16:19 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-12 17:16:19 +0200
commit2ca7dd57b12861e8c9bbc9238cda612e0ff22ff3 (patch)
tree302a644f6a50d60cc8304c4498fe6bbb72ddaaa9 /crates/turtle/src/command/client/wrapped.rs
parentfeat(server): Really make users stateless (with tests) (diff)
downloadatuin-2ca7dd57b12861e8c9bbc9238cda612e0ff22ff3.zip
chore(treewide): Cleanup themes
Diffstat (limited to 'crates/turtle/src/command/client/wrapped.rs')
-rw-r--r--crates/turtle/src/command/client/wrapped.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/turtle/src/command/client/wrapped.rs b/crates/turtle/src/command/client/wrapped.rs
index d502d3ec..2ce19bf7 100644
--- a/crates/turtle/src/command/client/wrapped.rs
+++ b/crates/turtle/src/command/client/wrapped.rs
@@ -4,7 +4,7 @@ use std::collections::{HashMap, HashSet};
use time::{Date, Duration, Month, OffsetDateTime, Time};
use crate::atuin_client::database::ClientSqlite;
-use crate::atuin_client::{settings::Settings, theme::Theme};
+use crate::atuin_client::settings::Settings;
use crate::atuin_history::stats::{Stats, compute};
@@ -31,7 +31,12 @@ impl WrappedStats {
.iter()
.filter(|(cmd, _)| {
let cmd = &cmd[0];
- cmd == "cd" || cmd == "ls" || cmd == "pwd" || cmd == "pushd" || cmd == "popd"
+ cmd == "cd"
+ || cmd == "ls"
+ || cmd == "ll"
+ || cmd == "pwd"
+ || cmd == "pushd"
+ || cmd == "popd"
})
.map(|(_, count)| count)
.sum();
@@ -267,12 +272,7 @@ fn print_fun_facts(wrapped_stats: &WrappedStats, stats: &Stats, year: i32) {
println!();
}
-pub(crate) async fn run(
- year: Option<i32>,
- db: &ClientSqlite,
- settings: &Settings,
- theme: &Theme,
-) -> Result<()> {
+pub(crate) async fn run(year: Option<i32>, db: &ClientSqlite, settings: &Settings) -> Result<()> {
let now = OffsetDateTime::now_utc().to_offset(settings.timezone.0);
let month = now.month();
@@ -318,7 +318,7 @@ pub(crate) async fn run(
);
println!("Your Top Commands:");
- crate::atuin_history::stats::pretty_print(stats.clone(), 1, theme);
+ crate::atuin_history::stats::pretty_print(stats.clone(), 1);
println!();
print_fun_facts(&wrapped_stats, &stats, year);