MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / Args

Class Args

crates/exec-harness/src/cli.rs:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#[command(name = "exec-harness")]
9#[command(about = "CodSpeed exec harness - wraps commands with performance instrumentation")]
10struct Args {
11 /// Optional benchmark name, else the command will be used as the name
12 #[arg(long)]
13 name: Option<String>,
14
15 /// Set by the runner, should be coherent with the executor being used
16 #[arg(short, long, global = true, env = "CODSPEED_RUNNER_MODE", hide = true)]
17 measurement_mode: Option<MeasurementMode>,
18
19 #[command(flatten)]
20 walltime_args: WalltimeExecutionArgs,
21
22 /// The command and arguments to execute.
23 /// Use "-" as the only argument to read a JSON payload from stdin.
24 #[arg(trailing_var_arg = true, allow_hyphen_values = true)]
25 command: Vec<String>,
26}
27
28pub fn run_cli<I, T>(argv: I) -> Result<()>
29where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected