diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/command/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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(), |
