Skip to content

Commit

Permalink
branch: Guard 'branch build' behind feature = 'builder'
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkofler committed Oct 7, 2024
1 parent 477ca02 commit 3e64aa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/branch/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ use tooling::{
mod ingest;
pub use ingest::*;

#[cfg(feature = "builder")]
mod build;
#[cfg(feature = "builder")]
pub use build::*;

/// The builder tool for AcaciaLinux
Expand All @@ -30,6 +32,7 @@ pub struct Cli {
#[derive(Parser)]
pub enum BranchCommand {
Ingest(IngestCommand),
#[cfg(feature = "builder")]
Build(BuildCommand),
}

Expand Down Expand Up @@ -69,6 +72,7 @@ impl BranchCommand {
pub fn run(&self, cli: &Cli) -> Result<i32, Error> {
match self {
Self::Ingest(cmd) => cmd.run(cli),
#[cfg(feature = "builder")]
Self::Build(cmd) => cmd.run(cli),
}
}
Expand Down

0 comments on commit 3e64aa3

Please sign in to comment.