[−][src]Enum sc_cli::Subcommand
All core commands that are provided by default.
The core commands are split into multiple subcommands and Run
is the default subcommand. From
the CLI user perspective, it is not visible that Run
is a subcommand. So, all parameters of
Run
are exported as main executable parameters.
Variants
BuildSpec(BuildSpecCmd)
Build a spec.json file, outputs to stdout.
ExportBlocks(ExportBlocksCmd)
Export blocks to a file.
ImportBlocks(ImportBlocksCmd)
Import blocks from file.
CheckBlock(CheckBlockCmd)
Validate a single block.
Revert(RevertCmd)
Revert chain to the previous state.
PurgeChain(PurgeChainCmd)
Remove the whole chain data.
ExportState(ExportStateCmd)
Export state as raw chain spec.
Trait Implementations
impl CliConfiguration for Subcommand
[src]
fn shared_params(&self) -> &SharedParams
[src]
fn import_params(&self) -> Option<&ImportParams>
[src]
fn pruning_params(&self) -> Option<&PruningParams>
[src]
fn keystore_params(&self) -> Option<&KeystoreParams>
[src]
fn network_params(&self) -> Option<&NetworkParams>
[src]
fn offchain_worker_params(&self) -> Option<&OffchainWorkerParams>
[src]
fn database_params(&self) -> Option<&DatabaseParams>
[src]
fn base_path(&self) -> Result<Option<PathBuf>>
[src]
fn is_dev(&self) -> Result<bool>
[src]
fn role(&self, is_dev: bool) -> Result<Role>
[src]
fn transaction_pool(&self) -> Result<TransactionPoolOptions>
[src]
fn network_config(
&self,
chain_spec: &Box<dyn ChainSpec>,
is_dev: bool,
net_config_dir: PathBuf,
client_id: &str,
node_name: &str,
node_key: NodeKeyConfig
) -> Result<NetworkConfiguration>
[src]
&self,
chain_spec: &Box<dyn ChainSpec>,
is_dev: bool,
net_config_dir: PathBuf,
client_id: &str,
node_name: &str,
node_key: NodeKeyConfig
) -> Result<NetworkConfiguration>
fn keystore_config(&self, base_path: &PathBuf) -> Result<KeystoreConfig>
[src]
fn database_cache_size(&self) -> Result<Option<usize>>
[src]
fn database_config(
&self,
base_path: &PathBuf,
cache_size: usize,
database: Database
) -> Result<DatabaseConfig>
[src]
&self,
base_path: &PathBuf,
cache_size: usize,
database: Database
) -> Result<DatabaseConfig>
fn database(&self) -> Result<Option<Database>>
[src]
fn state_cache_size(&self) -> Result<usize>
[src]
fn state_cache_child_ratio(&self) -> Result<Option<usize>>
[src]
fn pruning(&self, unsafe_pruning: bool, role: &Role) -> Result<PruningMode>
[src]
fn chain_id(&self, is_dev: bool) -> Result<String>
[src]
fn init<C: SubstrateCli>(&self) -> Result<()>
[src]
fn node_name(&self) -> Result<String>
[src]
fn wasm_method(&self) -> Result<WasmExecutionMethod>
[src]
fn execution_strategies(&self, is_dev: bool) -> Result<ExecutionStrategies>
[src]
fn rpc_http(&self) -> Result<Option<SocketAddr>>
[src]
fn rpc_ws(&self) -> Result<Option<SocketAddr>>
[src]
fn rpc_methods(&self) -> Result<RpcMethods>
[src]
fn rpc_ws_max_connections(&self) -> Result<Option<usize>>
[src]
fn rpc_cors(&self, is_dev: bool) -> Result<Option<Vec<String>>>
[src]
fn prometheus_config(&self) -> Result<Option<PrometheusConfig>>
[src]
fn telemetry_endpoints(
&self,
chain_spec: &Box<dyn ChainSpec>
) -> Result<Option<TelemetryEndpoints>>
[src]
&self,
chain_spec: &Box<dyn ChainSpec>
) -> Result<Option<TelemetryEndpoints>>
fn telemetry_external_transport(&self) -> Result<Option<ExtTransport>>
[src]
fn default_heap_pages(&self) -> Result<Option<u64>>
[src]
fn offchain_worker(&self, role: &Role) -> Result<OffchainWorkerConfig>
[src]
fn force_authoring(&self) -> Result<bool>
[src]
fn disable_grandpa(&self) -> Result<bool>
[src]
fn dev_key_seed(&self, is_dev: bool) -> Result<Option<String>>
[src]
fn tracing_targets(&self) -> Result<Option<String>>
[src]
fn tracing_receiver(&self) -> Result<TracingReceiver>
[src]
fn node_key(&self, net_config_dir: &PathBuf) -> Result<NodeKeyConfig>
[src]
fn max_runtime_instances(&self) -> Result<Option<usize>>
[src]
fn log_filters(&self) -> Result<String>
[src]
fn node_key_params(&self) -> Option<&NodeKeyParams>
[src]
fn announce_block(&self) -> Result<bool>
[src]
fn create_configuration<C: SubstrateCli>(
&self,
cli: &C,
task_executor: Arc<dyn Fn(Pin<Box<dyn Future<Output = ()> + Send>>, TaskType) + Send + Sync>
) -> Result<Configuration>
[src]
&self,
cli: &C,
task_executor: Arc<dyn Fn(Pin<Box<dyn Future<Output = ()> + Send>>, TaskType) + Send + Sync>
) -> Result<Configuration>
impl Clone for Subcommand
[src]
fn clone(&self) -> Subcommand
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Subcommand
[src]
impl StructOpt for Subcommand
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for Subcommand
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn from_subcommand<'a, 'b>(
sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
fn is_subcommand() -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Subcommand
impl Send for Subcommand
impl Sync for Subcommand
impl Unpin for Subcommand
impl UnwindSafe for Subcommand
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,