git.delta.rocks / unique-network / refs/commits / 02c6b6f09f14

difftreelog

feat add key subcommand

Yaroslav Bolyukin2023-02-14parent: #9b5209a.patch.diff
in: master

2 files changed

modifiednode/cli/src/cli.rsdiffbeforeafterboth
27 /// Export the genesis wasm of the parachain.27 /// Export the genesis wasm of the parachain.
28 ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand),28 ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand),
29
30 /// Keys manipulation subcommand
31 #[clap(subcommand)]
32 Key(sc_cli::KeySubcommand),
2933
30 /// Build a chain specification.34 /// Build a chain specification.
31 BuildSpec(sc_cli::BuildSpecCmd),35 BuildSpec(sc_cli::BuildSpecCmd),
modifiednode/cli/src/command.rsdiffbeforeafterboth
--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -313,6 +313,7 @@
 	let cli = Cli::from_args();
 
 	match &cli.subcommand {
+		Some(Subcommand::Key(cmd)) => cmd.run(&cli),
 		Some(Subcommand::BuildSpec(cmd)) => {
 			let runner = cli.create_runner(cmd)?;
 			runner.sync_run(|config| cmd.run(config.chain_spec, config.network))