mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
Inspection extension to node CLI (#4697)
* Initial inspect. * WiP * Add parsing tests. * Finalize CLI. * Update to latest substrate. * Remove unused imports. * Support ImportParams as well, to get the right pruning setting. * Mention in docs that hash is no 0x. * Move bytes above extrinsics. * Switch to fill helper from sc_cli. * Remove overwrite. * Fix error. * Fix error message. * Remove extra allow. * init_config
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
use sc_cli::{SharedParams, ImportParams, RunCmd};
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[allow(missing_docs)]
|
||||
/// An overarching CLI command definition.
|
||||
#[derive(Clone, Debug, StructOpt)]
|
||||
#[structopt(settings = &[
|
||||
structopt::clap::AppSettings::GlobalVersion,
|
||||
@@ -25,7 +25,7 @@ use structopt::StructOpt;
|
||||
structopt::clap::AppSettings::SubcommandsNegateReqs,
|
||||
])]
|
||||
pub struct Cli {
|
||||
#[allow(missing_docs)]
|
||||
/// Possible subcommand with parameters.
|
||||
#[structopt(subcommand)]
|
||||
pub subcommand: Option<Subcommand>,
|
||||
#[allow(missing_docs)]
|
||||
@@ -33,10 +33,10 @@ pub struct Cli {
|
||||
pub run: RunCmd,
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
/// Possible subcommands of the main binary.
|
||||
#[derive(Clone, Debug, StructOpt)]
|
||||
pub enum Subcommand {
|
||||
#[allow(missing_docs)]
|
||||
/// A set of base subcommands handled by `sc_cli`.
|
||||
#[structopt(flatten)]
|
||||
Base(sc_cli::Subcommand),
|
||||
/// The custom factory subcommmand for manufacturing transactions.
|
||||
@@ -46,6 +46,13 @@ pub enum Subcommand {
|
||||
Only supported for development or local testnet."
|
||||
)]
|
||||
Factory(FactoryCmd),
|
||||
|
||||
/// The custom inspect subcommmand for decoding blocks and extrinsics.
|
||||
#[structopt(
|
||||
name = "inspect",
|
||||
about = "Decode given block or extrinsic using current native runtime."
|
||||
)]
|
||||
Inspect(node_inspect::cli::InspectCmd),
|
||||
}
|
||||
|
||||
/// The `factory` command used to generate transactions.
|
||||
|
||||
Reference in New Issue
Block a user