difftreelog
feat add key subcommand
in: master
2 files changed
node/cli/src/cli.rsdiffbeforeafterboth27 /// 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),2930 /// Keys manipulation subcommand31 #[clap(subcommand)]32 Key(sc_cli::KeySubcommand),293330 /// Build a chain specification.34 /// Build a chain specification.31 BuildSpec(sc_cli::BuildSpecCmd),35 BuildSpec(sc_cli::BuildSpecCmd),node/cli/src/command.rsdiffbeforeafterboth313 let cli = Cli::from_args();313 let cli = Cli::from_args();314314315 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))