diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-12 17:16:19 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-12 17:16:19 +0200 |
| commit | 2ca7dd57b12861e8c9bbc9238cda612e0ff22ff3 (patch) | |
| tree | 302a644f6a50d60cc8304c4498fe6bbb72ddaaa9 /crates/turtle/src/command/mod.rs | |
| parent | feat(server): Really make users stateless (with tests) (diff) | |
| download | atuin-2ca7dd57b12861e8c9bbc9238cda612e0ff22ff3.zip | |
chore(treewide): Cleanup themes
Diffstat (limited to '')
| -rw-r--r-- | crates/turtle/src/command/mod.rs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/crates/turtle/src/command/mod.rs b/crates/turtle/src/command/mod.rs index 308e1970..78de2d03 100644 --- a/crates/turtle/src/command/mod.rs +++ b/crates/turtle/src/command/mod.rs @@ -4,23 +4,18 @@ use eyre::Result; #[cfg(not(windows))] use rustix::{fs::Mode, process::umask}; -#[cfg(feature = "client")] mod client; - mod contributors; - mod gen_completions; #[derive(Subcommand)] #[command(infer_subcommands = true)] #[expect(clippy::large_enum_variant)] pub(crate) enum AtuinCmd { - #[cfg(feature = "client")] #[command(flatten)] Client(client::Cmd), /// PTY proxy for atuin - #[cfg(feature = "pty-proxy")] #[command(alias = "hex")] PtyProxy(crate::atuin_pty_proxy::PtyProxy), @@ -44,10 +39,8 @@ impl AtuinCmd { } match self { - #[cfg(feature = "client")] Self::Client(client) => client.run(), - #[cfg(feature = "pty-proxy")] Self::PtyProxy(proxy) => { run_pty_proxy(proxy); Ok(()) @@ -66,16 +59,12 @@ impl AtuinCmd { } } -#[cfg(all(feature = "pty-proxy", unix))] +#[cfg(unix)] fn run_pty_proxy(proxy: crate::atuin_pty_proxy::PtyProxy) { - #[cfg(feature = "daemon")] proxy.run(semantic_command_capture_sink()); - - #[cfg(not(feature = "daemon"))] - proxy.run(None); } -#[cfg(all(feature = "daemon", feature = "pty-proxy", unix))] +#[cfg(unix)] fn semantic_command_capture_sink() -> Option<crate::atuin_pty_proxy::CommandCaptureSink> { use std::sync::mpsc; use std::time::Duration; |
