refactor(irtt-cli): split stream runtime path

This commit is contained in:
Nils Andreas Svee committed 2026-05-13 22:20:51 +07:00
1 parent 61c527eb26
commit 5d471b77fb
1 file changed
+11
+11
View File
@@ -62,6 +62,17 @@ fn install_signal_handler(shutdown_requested: Arc<AtomicBool>) -> Result<(), ctr
}
fn run(args: CliArgs, shutdown_requested: &AtomicBool) -> Result<(), Box<dyn std::error::Error>> {
match args.output {
OutputMode::Human | OutputMode::Machine | OutputMode::Simple | OutputMode::RttUs => {
run_stream(args, shutdown_requested)
}
}
}
fn run_stream(
args: CliArgs,
shutdown_requested: &AtomicBool,
) -> Result<(), Box<dyn std::error::Error>> {
let mode = args.output;
let continuous = args.is_continuous();
#[cfg(feature = "stats")]