Files
serai/substrate/node/src/cli.rs

43 lines
908 B
Rust
Raw Normal View History

use sc_cli::RunCmd;
#[derive(Debug, clap::Parser)]
pub struct Cli {
#[clap(subcommand)]
pub subcommand: Option<Subcommand>,
#[clap(flatten)]
pub run: RunCmd,
}
#[allow(clippy::large_enum_variant)]
#[derive(Debug, clap::Subcommand)]
pub enum Subcommand {
2022-09-29 05:25:29 -04:00
// Key management CLI utilities
#[clap(subcommand)]
Key(sc_cli::KeySubcommand),
2022-09-29 05:25:29 -04:00
// Build a chain specification
BuildSpec(sc_cli::BuildSpecCmd),
2022-09-29 05:25:29 -04:00
// Validate blocks
CheckBlock(sc_cli::CheckBlockCmd),
2022-09-29 05:25:29 -04:00
// Export blocks
ExportBlocks(sc_cli::ExportBlocksCmd),
2022-09-29 05:25:29 -04:00
// Export the state of a given block into a chain spec
ExportState(sc_cli::ExportStateCmd),
2022-09-29 05:25:29 -04:00
// Import blocks
ImportBlocks(sc_cli::ImportBlocksCmd),
2022-09-29 05:25:29 -04:00
// Remove the entire chain
PurgeChain(sc_cli::PurgeChainCmd),
2022-09-29 05:25:29 -04:00
// Revert the chain to a previous state
Revert(sc_cli::RevertCmd),
2022-09-29 05:25:29 -04:00
// DB meta columns information
ChainInfo(sc_cli::ChainInfoCmd),
}