Avoid panicking when inputting error app name; List all apps when initializing.
This commit is contained in:
parent
8fbadfc951
commit
d0af7d26be
4 changed files with 19 additions and 6 deletions
|
@ -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!("**************/")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue