Rewrite to a API trait.

This commit is contained in:
2026-01-11 14:12:54 +01:00
parent ea9f05b048
commit 88f8cf76ef
45 changed files with 1384 additions and 1030 deletions

View File

@@ -6,9 +6,9 @@ use flows::{main::Main, Flow, GamenightState};
#[tokio::main]
async fn main() {
let mut state = GamenightState::new();
let mainflow = Main::new();
let main_flow = Main::new();
clear_screen::clear();
if let Err(x) = mainflow.run(&mut state).await {
if let Err(x) = main_flow.run(&mut state).await {
println!("{}", x.error);
}
}