diff options
Diffstat (limited to 'src/command/mod.rs')
-rw-r--r-- | src/command/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/mod.rs b/src/command/mod.rs index 3a3ed393..953b76ba 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -2,6 +2,8 @@ use clap::Subcommand; use eyre::Result; mod client; + +#[cfg(feature = "server")] mod server; #[derive(Subcommand)] @@ -11,6 +13,7 @@ pub enum AtuinCmd { Client(client::Cmd), /// Start an atuin server + #[cfg(feature = "server")] #[clap(subcommand)] Server(server::Cmd), } @@ -19,6 +22,7 @@ impl AtuinCmd { pub async fn run(self) -> Result<()> { match self { Self::Client(client) => client.run().await, + #[cfg(feature = "server")] Self::Server(server) => server.run().await, } } |