mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
* Companion to `blockchain-info` Subcommand: #11250 * Rename to `chain-info` * Remove `ensure_dev` * Update cli/src/command.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Pin substrate `59a2150` * `service::Block` * Unused `chain_spec` * fmt Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Generated
+167
-166
File diff suppressed because it is too large
Load Diff
@@ -70,6 +70,9 @@ pub enum Subcommand {
|
||||
/// Key management CLI utilities
|
||||
#[clap(subcommand)]
|
||||
Key(sc_cli::KeySubcommand),
|
||||
|
||||
/// Db meta columns information.
|
||||
ChainInfo(sc_cli::ChainInfoCmd),
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
|
||||
@@ -605,6 +605,10 @@ pub fn run() -> Result<()> {
|
||||
.into(),
|
||||
)
|
||||
.into()),
|
||||
Some(Subcommand::ChainInfo(cmd)) => {
|
||||
let runner = cli.create_runner(cmd)?;
|
||||
Ok(runner.sync_run(|config| cmd.run::<service::Block>(&config))?)
|
||||
},
|
||||
}?;
|
||||
|
||||
#[cfg(feature = "pyroscope")]
|
||||
|
||||
Reference in New Issue
Block a user