Skip to content

Commit

Permalink
feature["parachain"] gate add
Browse files Browse the repository at this point in the history
  • Loading branch information
weezy20 committed Mar 17, 2024
1 parent b80cb50 commit b122568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/add/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "parachain")]
use std::path::PathBuf;

use crate::engines::pallet_engine;
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ enum Commands {
#[clap(alias = "t")]
#[cfg(feature = "contract")]
Test(commands::test::TestArgs),
#[cfg(feature = "parachain")]
#[clap(alias = "a")]
/// Add a pallet to the runtime
Add(commands::add::AddArgs),
Expand Down Expand Up @@ -83,6 +84,7 @@ async fn main() -> Result<()> {
Commands::Test(args) => match &args.command {
commands::test::TestCommands::Contract(cmd) => cmd.execute(),
},
#[cfg(feature = "parachain")]
Commands::Add(args) => args.execute(),
}
}
Expand Down

0 comments on commit b122568

Please sign in to comment.