From 6efe2ba259fecb66a7f6f62a3728172b3c1f495e Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 9 Apr 2025 20:30:35 -0600 Subject: [PATCH] add host selection menu --- src/main.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/main.rs b/src/main.rs index 5a5319e..f2beb7d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -173,4 +173,31 @@ fn main() { grab_home(); 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."), + } + } }