git.delta.rocks / unique-network / refs/commits / 7bcde70a2ca7

difftreelog

source

node/src/cli.rs926 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	/// Build a chain specification.16	BuildSpec(sc_cli::BuildSpecCmd),1718	/// Validate blocks.19	CheckBlock(sc_cli::CheckBlockCmd),2021	/// Export blocks.22	ExportBlocks(sc_cli::ExportBlocksCmd),2324	/// Export the state of a given block into a chain spec.25	ExportState(sc_cli::ExportStateCmd),2627	/// Import blocks.28	ImportBlocks(sc_cli::ImportBlocksCmd),2930	/// Remove the whole chain.31	PurgeChain(sc_cli::PurgeChainCmd),3233	/// Revert the chain to a previous state.34	Revert(sc_cli::RevertCmd),3536	// The custom benchmark subcommmand benchmarking runtime pallets.37	#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]38	Benchmark(frame_benchmarking_cli::BenchmarkCmd),39}