[refactor] streamline crate structure, update dependencies, and integrate CLI functionalities

This commit is contained in:
2025-08-13 14:05:13 +02:00
parent 128db0f733
commit 5c64677e79
17 changed files with 812 additions and 1235 deletions

View File

@@ -88,9 +88,10 @@ pub fn run_interactive_model_downloader() -> Result<()> {
}
let answer = ui::prompt_input("Your selection", Some("1"))?;
let selection_raw = match answer {
Some(s) => s.trim().to_string(),
None => "1".to_string(),
let selection_raw = if answer.trim().is_empty() {
"1".to_string()
} else {
answer.trim().to_string()
};
let selection = if selection_raw.is_empty() { "1" } else { &selection_raw };