Skip to content

Commit d6f2cde

Browse files
gnunicorndarkfriend77
authored andcommitted
Add Key Subcommand to node-template (paritytech#7615)
1 parent 35dbc6d commit d6f2cde

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

bin/node-template/node/src/cli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ pub struct Cli {
1212

1313
#[derive(Debug, StructOpt)]
1414
pub enum Subcommand {
15+
/// Key management cli utilities
16+
Key(sc_cli::KeySubcommand),
1517
/// Build a chain specification.
1618
BuildSpec(sc_cli::BuildSpecCmd),
1719

bin/node-template/node/src/command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub fn run() -> sc_cli::Result<()> {
6666
let cli = Cli::from_args();
6767

6868
match &cli.subcommand {
69+
Some(Subcommand::Key(cmd)) => cmd.run(),
6970
Some(Subcommand::BuildSpec(cmd)) => {
7071
let runner = cli.create_runner(cmd)?;
7172
runner.sync_run(|config| cmd.run(config.chain_spec, config.network))

0 commit comments

Comments
 (0)