From b1225685922f75793923c9b972aa02d3d8dfec9b Mon Sep 17 00:00:00 2001 From: Abhishek Shah Date: Sun, 17 Mar 2024 13:57:04 +0530 Subject: [PATCH] feature["parachain"] gate add --- src/commands/add/mod.rs | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/commands/add/mod.rs b/src/commands/add/mod.rs index 5d097791..f2800cc9 100644 --- a/src/commands/add/mod.rs +++ b/src/commands/add/mod.rs @@ -1,3 +1,4 @@ +#![cfg(feature = "parachain")] use std::path::PathBuf; use crate::engines::pallet_engine; diff --git a/src/main.rs b/src/main.rs index f0fc27a0..cbf17ea1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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), @@ -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(), } }