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
313 let cli = Cli::from_args();313 let cli = Cli::from_args();
314314
315 match &cli.subcommand {315 match &cli.subcommand {
316 Some(Subcommand::Key(cmd)) => cmd.run(&cli),
316 Some(Subcommand::BuildSpec(cmd)) => {317 Some(Subcommand::BuildSpec(cmd)) => {
317 let runner = cli.create_runner(cmd)?;318 let runner = cli.create_runner(cmd)?;
318 runner.sync_run(|config| cmd.run(config.chain_spec, config.network))319 runner.sync_run(|config| cmd.run(config.chain_spec, config.network))