Skip to content

Commit

Permalink
fix: add --recs arg to sozo build (#3062)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartianGreed authored Feb 26, 2025
1 parent fdf6ff0 commit 48cd046
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/sozo/src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ pub struct BuildArgs {
#[arg(help = "Generate Typescript bindings.")]
pub typescript_v2: bool,

#[arg(long)]
#[arg(help = "Generate Recs bindings.")]
pub recs: bool,

#[arg(long)]
#[arg(help = "Generate Unity bindings.")]
pub unity: bool,
Expand Down Expand Up @@ -118,6 +122,10 @@ impl BuildArgs {
builtin_plugins.push(BuiltinPlugins::TypeScriptV2);
}

if self.recs {
builtin_plugins.push(BuiltinPlugins::Recs);
}

if self.unity {
builtin_plugins.push(BuiltinPlugins::Unity);
}
Expand Down Expand Up @@ -204,6 +212,7 @@ impl Default for BuildArgs {
features,
typescript: false,
typescript_v2: false,
recs: false,
unity: false,
bindings_output: "bindings".to_string(),
stats: StatOptions::default(),
Expand Down

0 comments on commit 48cd046

Please sign in to comment.