Skip to content

Commit

Permalink
trivial update
Browse files Browse the repository at this point in the history
  • Loading branch information
Frefreak committed May 31, 2024
1 parent f5781e2 commit ec9f00c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ strum = "0.20"
strum_macros = "0.20"
quick-error = "2.0.0"
futures = "0.3"
tokio = { version = "1", features = ["full"] }
tokio = { version = "1.38.0", features = ["full"] }
tonic = { version = "0.9.2", features = ["tls", "transport"] }
opentelemetry = { version = "0.21.0" }
opentelemetry-otlp = { version = "0.14.0", features = ["tonic", "tls", "http-proto", "reqwest-client", "metrics", "logs"] }
Expand Down
11 changes: 5 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,22 @@ mod common;

#[derive(Parser, Debug)]
/// OpenTelemetry Toolkits
#[clap(version = "0.2")]
struct Opts {
#[clap(subcommand)]
command: SubCommand,
}

#[derive(Parser, Debug)]
enum SubCommand {
#[clap(aliases=&["d", "de", "dec"])]
#[clap(version="1.0", aliases=&["d", "de", "dec"])]
Decode(cmd_decode::Decode),
#[clap(aliases=&["t", "trace", "r", "re", "rep", "rt", "ret", "rept"])]
#[clap(version="1.0", aliases=&["t", "trace", "r", "re", "rep", "rt", "ret", "rept"])]
ReportTrace(cmd_report_trace::Report),
#[clap(aliases=&["rm", "rem", "repm", "metric"])]
#[clap(version="1.0", aliases=&["rm", "rem", "repm", "metric"])]
ReportMetric(cmd_report_metric::Report),
#[clap(aliases=&["l", "rl", "repl", "log"])]
#[clap(version="1.0", aliases=&["l", "rl", "repl", "log"])]
ReportLog(cmd_report_log::Report),
#[clap(aliases=&["s", "st"])]
#[clap(version="1.0", aliases=&["s", "st"])]
Search(cmd_search::Search)
}

Expand Down

0 comments on commit ec9f00c

Please sign in to comment.