added a welcome message!
This commit is contained in:
@@ -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
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user