added a welcome message!

This commit is contained in:
2026-08-14 17:19:50 -05:00
parent 9233390b18
commit 9b29c20c7e
2 changed files with 33 additions and 0 deletions
+5
View File
@@ -13,6 +13,11 @@ pub fn install() -> Result<(), Box<dyn Error>> {
get_user_input("would you like to install the Tetanus on this computer?")?.contains("y"); get_user_input("would you like to install the Tetanus on this computer?")?.contains("y");
if client { if client {
client_install()?; client_install()?;
println!(
"
"
)
} else { } else {
println!("Ok then bye... not sure what you wanted here..."); println!("Ok then bye... not sure what you wanted here...");
} }
+28
View File
@@ -112,6 +112,31 @@ async fn main() {
} }
} }
if args.client { if args.client {
let banner = "
XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXX
X
++----------++
++----------++
||Welcome To||
|| TETANUS ||
++----------++
++----------++ ";
if !client_config_path.exists() { if !client_config_path.exists() {
eprintln!( eprintln!(
"error: no client config path found at {}", "error: no client config path found at {}",
@@ -126,6 +151,9 @@ async fn main() {
exit(1); exit(1);
} }
appstate.name = name; appstate.name = name;
banner.lines().for_each(|line| {
appstate.output.push(line.to_string());
});
appstate.initialize_modules(); appstate.initialize_modules();
println!("entering tui..."); println!("entering tui...");
let _res = run_tui(appstate, rx).unwrap(); let _res = run_tui(appstate, rx).unwrap();