making command public (#12074)

This commit is contained in:
Debjit Bhowal
2024-10-25 19:51:17 +05:30
committed by GitHub
parent 09506aa130
commit e93e373853

View File

@ -39,7 +39,7 @@ pub struct Cli<C: ChainSpecParser = EthereumChainSpecParser, Ext: clap::Args + f
{
/// The command to run
#[command(subcommand)]
command: Commands<C, Ext>,
pub command: Commands<C, Ext>,
/// The chain this node is running.
///
@ -52,7 +52,7 @@ pub struct Cli<C: ChainSpecParser = EthereumChainSpecParser, Ext: clap::Args + f
value_parser = C::parser(),
global = true,
)]
chain: Arc<C::ChainSpec>,
pub chain: Arc<C::ChainSpec>,
/// Add a new instance of a node.
///
@ -68,10 +68,11 @@ pub struct Cli<C: ChainSpecParser = EthereumChainSpecParser, Ext: clap::Args + f
/// - `HTTP_RPC_PORT`: default - `instance` + 1
/// - `WS_RPC_PORT`: default + `instance` * 2 - 2
#[arg(long, value_name = "INSTANCE", global = true, default_value_t = 1, value_parser = value_parser!(u16).range(..=200))]
instance: u16,
pub instance: u16,
/// The logging configuration for the CLI.
#[command(flatten)]
logs: LogArgs,
pub logs: LogArgs,
}
impl Cli {