From 14b30606a5b2e127f5490f184c8af9ffab780095 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 13 May 2022 07:57:27 +0200 Subject: Allow to build atuin server without client (#404) --- src/command/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/command/mod.rs b/src/command/mod.rs index c86e76f5..ca7fc724 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -1,6 +1,7 @@ use clap::Subcommand; use eyre::Result; +#[cfg(feature = "client")] mod client; #[cfg(feature = "server")] @@ -9,6 +10,7 @@ mod server; #[derive(Subcommand)] #[clap(infer_subcommands = true)] pub enum AtuinCmd { + #[cfg(feature = "client")] #[clap(flatten)] Client(client::Cmd), @@ -21,6 +23,7 @@ pub enum AtuinCmd { impl AtuinCmd { pub fn run(self) -> Result<()> { match self { + #[cfg(feature = "client")] Self::Client(client) => client.run(), #[cfg(feature = "server")] Self::Server(server) => server.run(), -- cgit v1.3.1