Skip to content
Draft
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
31 changes: 31 additions & 0 deletions crates/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::commands::{
dkg::DkgArgs,
enr::EnrArgs,
relay::RelayArgs,
run::{RunArgs, RunUnsafeArgs},
test::{
all::TestAllArgs, beacon::TestBeaconArgs, infra::TestInfraArgs, mev::TestMevArgs,
peers::TestPeersArgs, validator::TestValidatorArgs,
Expand Down Expand Up @@ -65,6 +66,36 @@ pub enum Commands {
long_about = "Alpha subcommands represent features that are currently under development. They're not yet released for general use, but offer a glimpse into future functionalities planned for the distributed cluster system."
)]
Alpha(AlphaArgs),

#[command(
about = "Run the pluto middleware client",
long_about = "Starts the long-running Pluto middleware process to perform distributed validator duties."
)]
Run(Box<RunArgs>),

#[command(
hide = true,
about = "Unsafe subcommands provides regular pluto commands for testing purposes",
long_about = "Unsafe subcommands is a group of subcommands that includes both normal and test flags. It is intended for internal testing of the Pluto client and should be used with caution."
)]
Unsafe(UnsafeArgs),
}

/// Arguments for the hidden unsafe command.
#[derive(clap::Args)]
pub struct UnsafeArgs {
#[command(subcommand)]
pub command: UnsafeCommands,
}

/// Unsafe subcommands (hidden; for internal testing).
#[derive(Subcommand)]
pub enum UnsafeCommands {
#[command(
about = "Run the pluto middleware client",
long_about = "Starts the long-running Pluto middleware process to perform distributed validator duties."
)]
Run(Box<RunUnsafeArgs>),
}

/// Arguments for the alpha command
Expand Down
5 changes: 4 additions & 1 deletion crates/cli/src/commands/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ pub enum ConsoleColor {
/// `loki` is `Some` when the caller wants events forwarded to a Loki endpoint
/// (e.g. via `--loki-addresses`), and `None` for commands that only need
/// console output.
// TODO: wire `log-output-path` (Charon's `LogOutputPath`) into the file layer.
// TODO: wire `log-output-path` (file output) and `log-format` (logfmt/json)
// into the tracing layers — Charon's `LogOutputPath` / `Format`.
// `pluto_tracing` supports console + Loki only, so `run`/`dkg`/`relay` accept
// these flags for CLI parity but do not yet apply them.
pub fn build_console_tracing_config(
level: impl Into<String>,
color: &ConsoleColor,
Expand Down
1 change: 1 addition & 0 deletions crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ pub mod create_enr;
pub mod dkg;
pub mod enr;
pub mod relay;
pub mod run;
pub mod test;
pub mod version;
Loading
Loading