diff options
| author | Jakub Jirutka <jakub@jirutka.cz> | 2022-05-13 07:57:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-13 06:57:27 +0100 |
| commit | 14b30606a5b2e127f5490f184c8af9ffab780095 (patch) | |
| tree | 181cfc9e152b52defde17590db77817d48300a98 /src/command | |
| parent | Don't create config dir for server in default location if not needed (#406) (diff) | |
| download | atuin-14b30606a5b2e127f5490f184c8af9ffab780095.zip | |
Allow to build atuin server without client (#404)
Diffstat (limited to '')
| -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(), |
