Skip to content

Commit ac20676

Browse files
committed
opens file for user after producing results
1 parent 4bdee6e commit ac20676

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Cargo.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ edition = "2021"
77

88
[dependencies]
99
clap = { version = "4.4.13", features = ["derive"] }
10+
open = "5.0.1"
1011
plotters = "0.3.5"
1112
rand = "0.8.5"
1213
regex = "1.10.2"

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,6 @@ fn main() {
7474
let cli_args = parse_args();
7575
let (speed_tests, min_max_duration) = calc_results(&cli_args);
7676
build_graph(&cli_args, speed_tests, min_max_duration);
77+
println!("Done! Opening graph.png...");
78+
open::that("graph.png").unwrap();
7779
}

0 commit comments

Comments
 (0)