diff options
author | Conrad Ludgate <conrad.ludgate@truelayer.com> | 2022-04-22 21:14:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 20:14:23 +0000 |
commit | 7436e4ff651b64d4019a59d04c30c414ae220403 (patch) | |
tree | 3d5e35df1bce075ae04be63d76f9edc8cc17c6cb /src/command/mod.rs | |
parent | 508d4f476157384b0d454bee3dd6e9256560561b (diff) |
feature-flags (#328)
* use feature flags
* fmt
* fix features
* update ci
* fmt
Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
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, } } |