Avoid panicking when inputting error app name; List all apps when initializing.

This commit is contained in:
Yifan Wu 2020-12-10 14:51:50 +08:00
parent 8fbadfc951
commit d0af7d26be
4 changed files with 19 additions and 6 deletions

View file

@ -51,3 +51,12 @@ fn app_names() -> Vec<&'static str> {
}
v
}
pub fn list_apps() {
let apps = app_names();
println!("/**** APPS ****");
for app in apps {
println!("{}", app);
}
println!("**************/")
}