From 0b6ca5cb8ca4c46265e08e13053260d9b5cff568 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 11 Jun 2026 18:02:55 +0200 Subject: feat(server): Make user stuff stateless --- crates/turtle/src/command/client.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'crates/turtle/src/command/client.rs') diff --git a/crates/turtle/src/command/client.rs b/crates/turtle/src/command/client.rs index 15df60f8..9d5b4605 100644 --- a/crates/turtle/src/command/client.rs +++ b/crates/turtle/src/command/client.rs @@ -43,9 +43,6 @@ fn cleanup_old_logs(log_dir: &Path, prefix: &str, retention_days: u64) { #[cfg(feature = "sync")] mod sync; -#[cfg(feature = "sync")] -mod account; - #[cfg(feature = "daemon")] mod daemon; @@ -58,7 +55,6 @@ mod info; mod init; mod search; mod server; -mod setup; mod stats; mod store; mod wrapped; @@ -66,10 +62,6 @@ mod wrapped; #[derive(Subcommand, Debug)] #[command(infer_subcommands = true)] pub(crate) enum Cmd { - /// Setup Atuin features - #[command()] - Setup, - /// Manipulate shell history #[command(subcommand)] History(history::Cmd), @@ -92,10 +84,6 @@ pub(crate) enum Cmd { #[command(subcommand)] Server(server::Cmd), - /// Manage your sync account - #[cfg(feature = "sync")] - Account(account::Cmd), - /// Manage the atuin data store #[command(subcommand)] Store(store::Cmd), @@ -333,7 +321,6 @@ impl Cmd { let theme = theme_manager.load_theme(theme_name.as_str(), settings.theme.max_depth); match self { - Self::Setup => setup::run(&settings).await, Self::Import(import) => import.run(&db).await, Self::Stats(stats) => stats.run(&db, &settings, theme).await, Self::Search(search) => search.run(db, &mut settings, sqlite_store, theme).await, @@ -341,9 +328,6 @@ impl Cmd { #[cfg(feature = "sync")] Self::Sync(sync) => sync.run(settings, &db, sqlite_store).await, - #[cfg(feature = "sync")] - Self::Account(account) => account.run(settings, sqlite_store).await, - Self::Store(store) => store.run(&settings, &db, sqlite_store).await, Self::Server(server) => server.run().await, -- cgit v1.3.1