| 8 | #[command(name = "exec-harness")] |
| 9 | #[command(about = "CodSpeed exec harness - wraps commands with performance instrumentation")] |
| 10 | struct 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 | |
| 28 | pub fn run_cli<I, T>(argv: I) -> Result<()> |
| 29 | where |
nothing calls this directly
no outgoing calls
no test coverage detected