diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 00:54:30 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 00:54:30 +0200 |
| commit | 5c39e7cf284a1f6e9a1657f2deb44e359fc47eb8 (patch) | |
| tree | c64baa8d5866c8e339eaf660dd3f94f30a3f7d8a /crates/turtle/src/command/client.rs | |
| parent | chore: Somewhat simplify sync code (diff) | |
| download | atuin-5c39e7cf284a1f6e9a1657f2deb44e359fc47eb8.zip | |
chore: Move everything into one big crate
That helps remove duplicated code and rustc/cargo will now also show
dead code correctly.
Diffstat (limited to '')
| -rw-r--r-- | crates/turtle/src/command/client.rs (renamed from crates/atuin/src/command/client.rs) | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/atuin/src/command/client.rs b/crates/turtle/src/command/client.rs index 6c1bac29..20d85303 100644 --- a/crates/atuin/src/command/client.rs +++ b/crates/turtle/src/command/client.rs @@ -4,7 +4,7 @@ use std::path::{Path, PathBuf}; use clap::Subcommand; use eyre::{Result, WrapErr}; -use atuin_client::{ +use crate::atuin_client::{ database::Sqlite, record::sqlite_store::SqliteStore, settings::Settings, theme, }; use tracing_appender::rolling::{RollingFileAppender, Rotation}; @@ -57,6 +57,7 @@ mod import; mod info; mod init; mod search; +mod server; mod setup; mod stats; mod store; @@ -87,6 +88,10 @@ pub enum Cmd { #[command(flatten)] Sync(sync::Cmd), + /// Manage the atuin server + #[command(subcommand)] + Server(server::Cmd), + /// Manage your sync account #[cfg(feature = "sync")] Account(account::Cmd), @@ -341,6 +346,8 @@ impl Cmd { Self::Store(store) => store.run(&settings, &db, sqlite_store).await, + Self::Server(server) => server.run().await, + Self::Info => { info::run(&settings); Ok(()) |
