Companion to chain-info Subcommand: #11250 (#5370)

* 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:
tgmichel
2022-04-25 23:09:42 +02:00
committed by GitHub
parent 033950ca36
commit 9a840bb12a
3 changed files with 174 additions and 166 deletions
+167 -166
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -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)]
+4
View File
@@ -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")]