ghost-node/utils/staking-miner/playground/node/src/cli.rs
Uncle Stretch 66719626bb
inital commit, which is clearly not initial
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2024-10-03 15:38:52 +03:00

43 lines
911 B
Rust

use sc_cli::RunCmd;
#[derive(Debug, clap::Parser)]
pub struct Cli {
#[clap(subcommand)]
pub subcommand: Option<Subcommand>,
#[clap(flatten)]
pub run: RunCmd,
}
#[derive(Debug, clap::Subcommand)]
pub enum Subcommand {
/// Key managment cli utilities
#[clap(subcommand)]
Key(sc_cli::KeySubcommand),
/// Build a chain specification
#[clap(subcommand)]
BuildSpec(sc_cli::BuildSpecCmd),
/// Validate blocks
CheckBlocks(sc_cli::CheckBlocksCmd),
/// Export blocks
ExportBlocks(sc_cli::ExportBlocksCmd),
/// Export state
ExportState(sc_cli::ExportStateCmd),
/// Import blocks
ImportBlocks(sc_cli::ImportBlocksCmd),
/// Remove the whole chain
PurgeChain(sc_cli::PurgeChainCmd),
/// Revert the chain to a previous state
Revert(sc_cli::RevertCmd),
/// Db meta columns information
ChainInfo(sc_cli::ChainInfoCmd),
}