Skip to content

Commit dd4c1c1

Browse files
rphmeierpepyakin
authored andcommitted
cli: add key management commands
1 parent cbe5476 commit dd4c1c1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sugondat-chain/node/src/cli.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ use std::path::PathBuf;
33
/// Sub-commands supported by the collator.
44
#[derive(Debug, clap::Subcommand)]
55
pub enum Subcommand {
6+
/// Key management CLI utilities
7+
#[command(subcommand)]
8+
Key(sc_cli::KeySubcommand),
9+
610
/// Build a chain specification.
711
BuildSpec(sc_cli::BuildSpecCmd),
812

sugondat-chain/node/src/command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ pub fn run() -> Result<()> {
220220
}
221221
},
222222
Some(Subcommand::TryRuntime) => Err("The `try-runtime` subcommand has been migrated to a standalone CLI (https://github.com/paritytech/try-runtime-cli). It is no longer being maintained here and will be removed entirely some time after January 2024. Please remove this subcommand from your runtime and use the standalone CLI.".into()),
223+
Some(Subcommand::Key(cmd)) => Ok(cmd.run(&cli)?),
223224
None => {
224225
let runner = cli.create_runner(&cli.run.normalize())?;
225226
let collator_options = cli.run.collator_options();

0 commit comments

Comments
 (0)