mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-07 19:31:07 +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:
1 parent
033950ca36
commit
9a840bb12a
3 files changed
+174
-166
No files matched your search
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