chore: fmt

This commit is contained in:
Daniel Lundin 2025-01-06 00:16:11 +01:00
parent 817e940167
commit cf3dd45f48
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 24 additions and 6 deletions

View file

@ -7,11 +7,20 @@ mod patagia_api;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Cli {
#[arg(long = "telemetry-otlp-endpoint", default_value = "http://localhost:4317", value_name = "OTEL_EXPORTER_OTLP_ENDPOINT")]
#[arg(
long = "telemetry-otlp-endpoint",
default_value = "http://localhost:4317",
value_name = "OTEL_EXPORTER_OTLP_ENDPOINT"
)]
otlp_endpoint: Option<String>,
#[arg(long = "log-stderr", short = 'v', default_value = "false", value_name = "LOG_TO_STDERR")]
log_stderr: bool
#[arg(
long = "log-stderr",
short = 'v',
default_value = "false",
value_name = "LOG_TO_STDERR"
)]
log_stderr: bool,
}
#[tokio::main]

View file

@ -15,11 +15,20 @@ use patagia_controller::context::ControllerContext;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Cli {
#[arg(long = "telemetry-otlp-endpoint", default_value = "http://localhost:4317", value_name = "OTEL_EXPORTER_OTLP_ENDPOINT")]
#[arg(
long = "telemetry-otlp-endpoint",
default_value = "http://localhost:4317",
value_name = "OTEL_EXPORTER_OTLP_ENDPOINT"
)]
otlp_endpoint: Option<String>,
#[arg(long = "log-stderr", short = 'v', default_value = "false", value_name = "LOG_TO_STDERR")]
log_stderr: bool
#[arg(
long = "log-stderr",
short = 'v',
default_value = "false",
value_name = "LOG_TO_STDERR"
)]
log_stderr: bool,
}
#[tokio::main]