stuff
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
mod data;
|
mod data;
|
||||||
mod solve;
|
mod solve;
|
||||||
|
use std::io::Write;
|
||||||
|
|
||||||
pub use data::*;
|
pub use data::*;
|
||||||
pub use solve::*;
|
pub use solve::*;
|
||||||
|
|
||||||
@@ -16,6 +18,8 @@ fn main() {
|
|||||||
];
|
];
|
||||||
usage();
|
usage();
|
||||||
print_priority(&priority);
|
print_priority(&priority);
|
||||||
|
print!("> ");
|
||||||
|
let _ = std::io::stdout().flush();
|
||||||
let input = std::io::stdin();
|
let input = std::io::stdin();
|
||||||
for line in input.lines() {
|
for line in input.lines() {
|
||||||
let Ok(line) = line else {
|
let Ok(line) = line else {
|
||||||
@@ -33,6 +37,8 @@ fn main() {
|
|||||||
println!("unknown command {cmd}");
|
println!("unknown command {cmd}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
print!("> ");
|
||||||
|
let _ = std::io::stdout().flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user