mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Change to use the same subcommand syntax as subkey (#8678)
* Change to use the same subcommand syntax as subkey * Update client/cli/src/commands/inspect_key.rs * revert to InspectKeyCmd struct
This commit is contained in:
@@ -24,7 +24,7 @@ use structopt::StructOpt;
|
||||
|
||||
/// The `inspect` command used to print decoded chain data.
|
||||
#[derive(Debug, StructOpt)]
|
||||
pub struct InspectCmd {
|
||||
pub struct InspectKeyCmd {
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(flatten)]
|
||||
pub command: InspectSubCmd,
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
|
||||
//! Command ran by the CLI
|
||||
|
||||
use crate::cli::{InspectCmd, InspectSubCmd};
|
||||
use crate::cli::{InspectKeyCmd, InspectSubCmd};
|
||||
use crate::Inspector;
|
||||
use sc_cli::{CliConfiguration, ImportParams, Result, SharedParams};
|
||||
use sc_service::{new_full_client, Configuration, NativeExecutionDispatch};
|
||||
use sp_runtime::traits::Block;
|
||||
use std::str::FromStr;
|
||||
|
||||
impl InspectCmd {
|
||||
impl InspectKeyCmd {
|
||||
/// Run the inspect command, passing the inspector.
|
||||
pub fn run<B, RA, EX>(&self, config: Configuration) -> Result<()>
|
||||
where
|
||||
@@ -54,7 +54,7 @@ impl InspectCmd {
|
||||
}
|
||||
}
|
||||
|
||||
impl CliConfiguration for InspectCmd {
|
||||
impl CliConfiguration for InspectKeyCmd {
|
||||
fn shared_params(&self) -> &SharedParams {
|
||||
&self.shared_params
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user