mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
making command public (#12074)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user