mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 17:17:56 +00:00
e64693933f
* Less sleeps * No need to use tokio-test crate * Less sleep * Avoid leaving zombie substrates around (when panicing in tests) * Remove unused imports * Incorporating feedback * rename method * Use rpc_api * Update bin/node/cli/tests/temp_base_path_works.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update bin/node/cli/tests/temp_base_path_works.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
42 lines
989 B
Rust
42 lines
989 B
Rust
use sc_cli::RunCmd;
|
|
use structopt::StructOpt;
|
|
|
|
#[derive(Debug, StructOpt)]
|
|
pub struct Cli {
|
|
#[structopt(subcommand)]
|
|
pub subcommand: Option<Subcommand>,
|
|
|
|
#[structopt(flatten)]
|
|
pub run: RunCmd,
|
|
}
|
|
|
|
#[derive(Debug, StructOpt)]
|
|
pub enum Subcommand {
|
|
/// Key management cli utilities
|
|
Key(sc_cli::KeySubcommand),
|
|
/// Build a chain specification.
|
|
BuildSpec(sc_cli::BuildSpecCmd),
|
|
|
|
/// Validate blocks.
|
|
CheckBlock(sc_cli::CheckBlockCmd),
|
|
|
|
/// Export blocks.
|
|
ExportBlocks(sc_cli::ExportBlocksCmd),
|
|
|
|
/// Export the state of a given block into a chain spec.
|
|
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),
|
|
|
|
/// The custom benchmark subcommand benchmarking runtime pallets.
|
|
#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]
|
|
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
|
|
}
|