Rename inspect-key to inspect (#7160)

This commit is contained in:
Benjamin Kampmann
2020-09-21 10:14:27 +02:00
committed by GitHub
parent 8a0ac4c40c
commit e32d516e4c
+2 -2
View File
@@ -39,7 +39,7 @@ pub enum Subkey {
Generate(GenerateCmd),
/// Gets a public key and a SS58 address from the provided Secret URI
InspectKey(InspectKeyCmd),
Inspect(InspectKeyCmd),
/// Print the peer ID corresponding to the node key in the given file
InspectNodeKey(InspectNodeKeyCmd),
@@ -69,7 +69,7 @@ pub fn run<R>() -> Result<(), Error>
match Subkey::from_args() {
Subkey::GenerateNodeKey(cmd) => cmd.run()?,
Subkey::Generate(cmd) => cmd.run()?,
Subkey::InspectKey(cmd) => cmd.run()?,
Subkey::Inspect(cmd) => cmd.run()?,
Subkey::InspectNodeKey(cmd) => cmd.run()?,
Subkey::Insert(cmd) => cmd.run()?,
Subkey::ModuleId(cmd) => cmd.run::<R>()?,