mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-01 21:47:25 +00:00
refactor(cli): Make some run params reusable (#13870)
* refactor: extract TelemetryParams and PrometheusParams * improve run_cmd docs * extract `RuntimeParams` * use `normalize` * keep params types same style * improve `max_runtime_instances` * fmt * add license and improve code * Update client/cli/src/params/runtime_params.rs Co-authored-by: Bastian Köcher <git@kchr.de> --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -20,14 +20,13 @@
|
||||
|
||||
use crate::error::Error;
|
||||
use array_bytes::{hex2bytes, hex_bytes2hex_str};
|
||||
use clap::Parser;
|
||||
use clap::Args;
|
||||
use std::io::BufRead;
|
||||
|
||||
/// Params to configure how a message should be passed into a command.
|
||||
#[derive(Parser, Debug, Clone)]
|
||||
#[derive(Debug, Clone, Args)]
|
||||
pub struct MessageParams {
|
||||
/// Message to process. Will be read from STDIN otherwise.
|
||||
///
|
||||
/// The message is assumed to be raw bytes per default. Use `--hex` for hex input. Can
|
||||
/// optionally be prefixed with `0x` in the hex case.
|
||||
#[arg(long)]
|
||||
|
||||
Reference in New Issue
Block a user