frontier_template_node/
cli.rs
1use crate::service::EthConfiguration;
2
3#[derive(Copy, Clone, Debug, Default, clap::ValueEnum)]
5pub enum Sealing {
6 #[default]
8 Manual,
9 Instant,
11}
12
13#[derive(Debug, clap::Parser)]
14pub struct Cli {
15 #[command(subcommand)]
16 pub subcommand: Option<Subcommand>,
17
18 #[allow(missing_docs)]
19 #[command(flatten)]
20 pub run: sc_cli::RunCmd,
21
22 #[arg(long, value_enum, ignore_case = true)]
24 pub sealing: Option<Sealing>,
25
26 #[command(flatten)]
27 pub eth: EthConfiguration,
28}
29
30#[derive(Debug, clap::Subcommand)]
31pub enum Subcommand {
32 #[command(subcommand)]
34 Key(sc_cli::KeySubcommand),
35
36 BuildSpec(sc_cli::BuildSpecCmd),
38
39 CheckBlock(sc_cli::CheckBlockCmd),
41
42 ExportBlocks(sc_cli::ExportBlocksCmd),
44
45 ExportState(sc_cli::ExportStateCmd),
47
48 ImportBlocks(sc_cli::ImportBlocksCmd),
50
51 PurgeChain(sc_cli::PurgeChainCmd),
53
54 Revert(sc_cli::RevertCmd),
56
57 #[cfg(feature = "runtime-benchmarks")]
59 #[command(subcommand)]
60 Benchmark(frame_benchmarking_cli::BenchmarkCmd),
61
62 #[cfg(not(feature = "runtime-benchmarks"))]
64 Benchmark,
65
66 FrontierDb(fc_cli::FrontierDbCmd),
68}