Skip to content

Commit 2070f5e

Browse files
committed
fix(skills): show Installed: No when no skill store exists
1 parent 4978791 commit 2070f5e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/skill.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,19 @@ pub fn status() {
462462
println!("{:<20}{}", format!("{label}:"), value);
463463
}
464464

465+
let any_exist = SKILL_NAMES
466+
.iter()
467+
.any(|name| skill_store_path(name).exists());
465468
let all_exist = SKILL_NAMES
466469
.iter()
467470
.all(|name| skill_store_path(name).exists());
468471

472+
if !any_exist {
473+
row("Installed", &"No".red().to_string());
474+
println!("\nRun 'hotdata skills install' to install.");
475+
return;
476+
}
477+
469478
if !all_exist {
470479
row("Installed", &"Partial".yellow().to_string());
471480
for skill_name in SKILL_NAMES {

0 commit comments

Comments
 (0)