diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 17:54:34 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 17:54:34 +0200 |
| commit | 6bd2b80be51a8623640fbd77afa1da09289e40cc (patch) | |
| tree | 8fa76fc78e27a4f3d6f57af07805a83e9877f0ad /crates/client/src/command/client.rs | |
| parent | chore: Commit (diff) | |
| download | atuin-6bd2b80be51a8623640fbd77afa1da09289e40cc.zip | |
chore: All compiles
Diffstat (limited to '')
| -rw-r--r-- | crates/client/src/command/client.rs | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/crates/client/src/command/client.rs b/crates/client/src/command/client.rs index 42e72e21..9f45f53b 100644 --- a/crates/client/src/command/client.rs +++ b/crates/client/src/command/client.rs @@ -37,11 +37,12 @@ fn cleanup_old_logs(log_dir: &Path, prefix: &str, retention_days: u64) { } mod config; +mod daemon; mod default_config; mod history; mod info; mod stats; -mod store; +// mod store; mod sync; mod wrapped; @@ -52,14 +53,17 @@ pub(crate) enum Cmd { #[command(subcommand)] History(history::Cmd), + /// Interact with the daemon #[command(subcommand)] - /// Request a sync or view sync status - Sync(sync::Cmd), + Daemon(daemon::Cmd), - /// Manage the atuin data store #[command(subcommand)] - Store(store::Cmd), + /// Request a sync or view sync status + Sync(sync::Cmd), + // /// Manage the atuin data store + // #[command(subcommand)] + // Store(store::Cmd), /// Information about dotfiles locations and ENV vars #[command()] Info, @@ -97,7 +101,7 @@ impl Cmd { res } - async fn run_inner(self, mut settings: Settings) -> Result<()> { + async fn run_inner(self, settings: Settings) -> Result<()> { // ATUIN_LOG env var overrides config file level settings let env_log_set = std::env::var("ATUIN_LOG").is_ok(); @@ -117,14 +121,14 @@ impl Cmd { } match self { - Self::Stats(stats) => stats.run(&db, &settings).await, - Self::Wrapped { year } => wrapped::run(year, &db, &settings).await, - - Self::Sync(sync) => sync.run(settings, &db, sqlite_store).await, + Self::Daemon(cmd) => cmd.run(&settings).await, + Self::Sync(sync) => sync.run(settings).await, - Self::Store(store) => store.run(&settings, &db, sqlite_store).await, + Self::Stats(stats) => stats.run(&settings).await, + Self::Wrapped { year } => wrapped::run(year, &settings).await, - Self::Info => info::run(&settings), + // Self::Store(store) => store.run(&settings, &db, sqlite_store).await, + Self::Info => info::run(&settings).await, Self::DefaultConfig => { default_config::run(); |
