Skip to content

Commit

Permalink
add last replay command
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen-Samseth committed Apr 7, 2024
1 parent 7e8c4b7 commit fbad7eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pub enum Replay {
Toggle,
Save,
Status,
LastReplay,
}

#[derive(Subcommand, Clone, Debug)]
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
if res { "running" } else { "not running" }
);
}
LastReplay => {
let res = client.replay_buffer().last_replay().await;
println!("Last replay file name");
println!("Result: {:?}", res);
}
}
}

Expand Down

0 comments on commit fbad7eb

Please sign in to comment.