mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
add host selection menu
This commit is contained in:
parent
8ddbfe05d8
commit
6efe2ba259
1 changed files with 27 additions and 0 deletions
27
src/main.rs
27
src/main.rs
|
@ -173,4 +173,31 @@ fn main() {
|
||||||
grab_home();
|
grab_home();
|
||||||
|
|
||||||
nix_gen();
|
nix_gen();
|
||||||
|
|
||||||
|
// Host selection
|
||||||
|
loop {
|
||||||
|
println!("");
|
||||||
|
println!("Host selection");
|
||||||
|
println!("1. Device 1");
|
||||||
|
println!("2. Device 2");
|
||||||
|
println!("3. Device 3");
|
||||||
|
println!("");
|
||||||
|
|
||||||
|
println!("Enter your host for installation:");
|
||||||
|
|
||||||
|
let mut choice = String::new();
|
||||||
|
io::stdin().read_line(&mut choice).unwrap();
|
||||||
|
|
||||||
|
match choice.trim() {
|
||||||
|
"1" => println!("Hello, world!"),
|
||||||
|
"2" => {
|
||||||
|
println!("2 + 2 = {}", 2 + 2);
|
||||||
|
},
|
||||||
|
"3" => {
|
||||||
|
println!("Goodbye!");
|
||||||
|
break;
|
||||||
|
},
|
||||||
|
_ => println!("Invalid choice, try again."),
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue