From 851285225fce83bd63410d44e106df0c2a4a4733 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 14 Feb 2021 22:12:35 +0000 Subject: Add stats command (#9) * Add stats command For example atuin stats day yesterday atuin stats day last friday atuin stats day 01/01/21 * Output tables, fix import blanks --- Cargo.lock | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 588231d6..08d193f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,6 +109,8 @@ name = "atuin" version = "0.2.4" dependencies = [ "chrono", + "chrono-english", + "cli-table", "directories", "eyre", "hostname", @@ -240,6 +242,17 @@ dependencies = [ "winapi", ] +[[package]] +name = "chrono-english" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4233ee19352739cfdcb5d7c2085005b166f6170ef2845ed9eef27a8fa5f95206" +dependencies = [ + "chrono", + "scanlex", + "time", +] + [[package]] name = "clap" version = "2.33.3" @@ -255,6 +268,28 @@ dependencies = [ "vec_map", ] +[[package]] +name = "cli-table" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c568382da2369ef1fcbfc2665c6f93f1b6ec9caf585312d2034d2d2584ea68b9" +dependencies = [ + "cli-table-derive", + "termcolor", + "unicode-width", +] + +[[package]] +name = "cli-table-derive" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ee3795f920d8cf38d4902e8bf4573e7aa9ba430e0144b5b5ee3ae4da34f819b" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.9", + "syn 1.0.60", +] + [[package]] name = "console" version = "0.14.0" @@ -1062,6 +1097,12 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" +[[package]] +name = "scanlex" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "088c5d71572124929ea7549a8ce98e1a6fd33d0a38367b09027b382e67c033db" + [[package]] name = "serde" version = "1.0.123" -- cgit v1.3.1