diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 20a2723..54bb698 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -40,6 +40,7 @@ pub(crate) struct HarmonicCli { /// Number of build users to create #[clap(long, default_value = "32", env = "HARMONIC_NIX_DAEMON_USER_COUNT")] pub(crate) daemon_user_count: usize, + #[cfg(target_os = "linux")] #[clap(subcommand)] subcommand: Option, } @@ -62,8 +63,8 @@ impl CommandExecute for HarmonicCli { subcommand, } = self; + #[cfg(target_os = "linux")] match subcommand { - #[cfg(target_os = "linux")] Some(subcommand::Subcommand::NixOs(nixos)) => return nixos.execute().await, None => (), }