Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Let the clone wars begin! #8731

Merged
1 commit merged into from
May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/cli/src/commands/build_spec_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use structopt::StructOpt;
use std::io::Write;

/// The `build-spec` command used to build a specification.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct BuildSpecCmd {
/// Force raw genesis storage output.
#[structopt(long = "raw")]
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/check_block_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::{fmt::Debug, str::FromStr, sync::Arc};
use structopt::StructOpt;

/// The `check-block` command used to validate blocks.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct CheckBlockCmd {
/// Block hash or number
#[structopt(value_name = "HASH or NUMBER")]
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/export_blocks_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use std::sync::Arc;
use structopt::StructOpt;

/// The `export-blocks` command used to export blocks.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct ExportBlocksCmd {
/// Output file name or stdout if unspecified.
#[structopt(parse(from_os_str))]
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/export_state_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use sc_client_api::{StorageProvider, UsageProvider};

/// The `export-state` command used to export the state of a given block into
/// a chain spec.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct ExportStateCmd {
/// Block hash or number.
#[structopt(value_name = "HASH or NUMBER")]
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use crate::{
};

/// The `generate` command
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
#[structopt(name = "generate", about = "Generate a random account")]
pub struct GenerateCmd {
/// The number of words in the phrase to generate. One of 12 (default), 15, 18, 21 and 24.
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/insert_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use sc_keystore::LocalKeystore;
use sc_service::config::{KeystoreConfig, BasePath};

/// The `insert` command
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
#[structopt(
name = "insert",
about = "Insert a key to the keystore of a node."
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/purge_chain_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::io::{self, Write};
use structopt::StructOpt;

/// The `purge-chain` command used to remove the whole chain.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct PurgeChainCmd {
/// Skip interactive prompt by answering yes automatically.
#[structopt(short = "y")]
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/run_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use structopt::StructOpt;

/// The `run` command used to run a node.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct RunCmd {
/// Enable validator mode.
///
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use structopt::StructOpt;
use sp_core::crypto::SecretString;

/// The `sign` command
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
#[structopt(
name = "sign",
about = "Sign a message, with a given (secret) key"
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/vanity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use sp_runtime::traits::IdentifyAccount;
use utils::print_from_uri;

/// The `vanity` command
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
#[structopt(
name = "vanity",
about = "Generate a seed that provides a vanity address"
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use sp_core::{Public, crypto::Ss58Codec};
use structopt::StructOpt;

/// The `verify` command
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
#[structopt(
name = "verify",
about = "Verify a signature for a message, provided on STDIN, with a given (public or secret) key"
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/database_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use structopt::StructOpt;
use sc_service::TransactionStorageMode;

/// Parameters for block import.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct DatabaseParams {
/// Select database backend to use.
#[structopt(
Expand Down
4 changes: 2 additions & 2 deletions client/cli/src/params/import_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use structopt::StructOpt;
use std::path::PathBuf;

/// Parameters for block import.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct ImportParams {
#[allow(missing_docs)]
#[structopt(flatten)]
Expand Down Expand Up @@ -125,7 +125,7 @@ impl ImportParams {
}

/// Execution strategies parameters.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct ExecutionStrategiesParams {
/// The means of execution used when calling into the runtime for importing blocks as
/// part of an initial sync.
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/keystore_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use sp_core::crypto::SecretString;
const DEFAULT_KEYSTORE_CONFIG_PATH: &'static str = "keystore";

/// Parameters of the keystore
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct KeystoreParams {
/// Specify custom URIs to connect to for keystore-services
#[structopt(long = "keystore-uri")]
Expand Down
8 changes: 4 additions & 4 deletions client/cli/src/params/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl GenericNumber {
}

/// Wrapper type that is either a `Hash` or the number of a `Block`.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct BlockNumberOrHash(String);

impl FromStr for BlockNumberOrHash {
Expand Down Expand Up @@ -119,7 +119,7 @@ impl BlockNumberOrHash {


/// Optional flag for specifying crypto algorithm
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct CryptoSchemeFlag {
/// cryptography scheme
#[structopt(
Expand All @@ -133,7 +133,7 @@ pub struct CryptoSchemeFlag {
}

/// Optional flag for specifying output type
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct OutputTypeFlag {
/// output format
#[structopt(
Expand All @@ -147,7 +147,7 @@ pub struct OutputTypeFlag {
}

/// Optional flag for specifying network scheme
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct NetworkSchemeFlag {
/// network address format
#[structopt(
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/network_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::{borrow::Cow, path::PathBuf};
use structopt::StructOpt;

/// Parameters used to create the network configuration.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct NetworkParams {
/// Specify a list of bootnodes.
#[structopt(long = "bootnodes", value_name = "ADDR")]
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/node_key_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const NODE_KEY_ED25519_FILE: &str = "secret_ed25519";

/// Parameters used to create the `NodeKeyConfig`, which determines the keypair
/// used for libp2p networking.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct NodeKeyParams {
/// The secret key to use for libp2p networking.
///
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/offchain_worker_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use crate::error;
use crate::OffchainWorkerEnabled;

/// Offchain worker related parameters.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct OffchainWorkerParams {
/// Should execute offchain workers on every block.
///
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/pruning_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use sc_service::{PruningMode, Role, KeepBlocks};
use structopt::StructOpt;

/// Parameters to define the pruning mode
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct PruningParams {
/// Specify the state pruning mode, a number of blocks to keep or 'archive'.
///
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/shared_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use structopt::StructOpt;
use crate::arg_enums::TracingReceiver;

/// Shared parameters used by all `CoreParams`.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct SharedParams {
/// Specify the chain specification.
///
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/params/transaction_pool_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use sc_service::config::TransactionPoolOptions;
use structopt::StructOpt;

/// Parameters used to create the pool configuration.
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct TransactionPoolParams {
/// Maximum number of transactions in the transaction pool.
#[structopt(long = "pool-limit", value_name = "COUNT", default_value = "8192")]
Expand Down