git.delta.rocks / unique-network / refs/commits / ffe7ca258082

difftreelog

source

node/src/cli.rs990 Bsourcehistory
1use structopt::StructOpt;2use sc_cli::RunCmd;34#[derive(Debug, StructOpt)]5pub struct Cli {6	#[structopt(subcommand)]7	pub subcommand: Option<Subcommand>,89	#[structopt(flatten)]10	pub run: RunCmd,11}1213#[derive(Debug, StructOpt)]14pub enum Subcommand {15	/// Key management cli utilities16	Key(sc_cli::KeySubcommand),17	/// Build a chain specification.18	BuildSpec(sc_cli::BuildSpecCmd),1920	/// Validate blocks.21	CheckBlock(sc_cli::CheckBlockCmd),2223	/// Export blocks.24	ExportBlocks(sc_cli::ExportBlocksCmd),2526	/// Export the state of a given block into a chain spec.27	ExportState(sc_cli::ExportStateCmd),2829	/// Import blocks.30	ImportBlocks(sc_cli::ImportBlocksCmd),3132	/// Remove the whole chain.33	PurgeChain(sc_cli::PurgeChainCmd),3435	/// Revert the chain to a previous state.36	Revert(sc_cli::RevertCmd),3738	/// The custom benchmark subcommmand benchmarking runtime pallets.39	#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]40	Benchmark(frame_benchmarking_cli::BenchmarkCmd),41}