Skip to content

Commit

Permalink
add version to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Frefreak committed Dec 28, 2023
1 parent eabfbf8 commit a5a7737
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,23 @@ mod common;

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

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

Expand Down

0 comments on commit a5a7737

Please sign in to comment.