reth_optimism_cli/commands/
mod.rsuse crate::chainspec::OpChainSpecParser;
use clap::Subcommand;
use import::ImportOpCommand;
use import_receipts::ImportReceiptsOpCommand;
use reth_cli::chainspec::ChainSpecParser;
use reth_cli_commands::{
config_cmd, db, dump_genesis, init_cmd,
node::{self, NoArgs},
p2p, prune, recover, stage,
};
use std::fmt;
mod build_pipeline;
pub mod import;
pub mod import_receipts;
pub mod init_state;
#[cfg(feature = "dev")]
pub mod test_vectors;
#[derive(Debug, Subcommand)]
pub enum Commands<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt::Debug = NoArgs>
{
#[command(name = "node")]
Node(Box<node::NodeCommand<Spec, Ext>>),
#[command(name = "init")]
Init(init_cmd::InitCommand<Spec>),
#[command(name = "init-state")]
InitState(init_state::InitStateCommandOp<Spec>),
#[command(name = "import-op")]
ImportOp(ImportOpCommand<Spec>),
#[command(name = "import-receipts-op")]
ImportReceiptsOp(ImportReceiptsOpCommand<Spec>),
DumpGenesis(dump_genesis::DumpGenesisCommand<Spec>),
#[command(name = "db")]
Db(db::Command<Spec>),
#[command(name = "stage")]
Stage(Box<stage::Command<Spec>>),
#[command(name = "p2p")]
P2P(p2p::Command<Spec>),
#[command(name = "config")]
Config(config_cmd::Command),
#[command(name = "recover")]
Recover(recover::Command<Spec>),
#[command(name = "prune")]
Prune(prune::PruneCommand<Spec>),
#[cfg(feature = "dev")]
#[command(name = "test-vectors")]
TestVectors(test_vectors::Command),
}