mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-14 04:02:26 +00:00
Merge pull request #19830 from NousResearch/austin/fix/pluralization
fix(cli): use proper singular/plural in doctor and claw messages
This commit is contained in:
commit
a3131862bd
2 changed files with 18 additions and 4 deletions
|
|
@ -685,10 +685,17 @@ def _cmd_cleanup(args):
|
||||||
# Summary
|
# Summary
|
||||||
print()
|
print()
|
||||||
if dry_run:
|
if dry_run:
|
||||||
print_info(f"Dry run complete. {len(dirs_to_check)} directory(ies) would be archived.")
|
_n_dirs = len(dirs_to_check)
|
||||||
|
print_info(
|
||||||
|
f"Dry run complete. {_n_dirs} "
|
||||||
|
f"{'directory' if _n_dirs == 1 else 'directories'} would be archived."
|
||||||
|
)
|
||||||
print_info("Run without --dry-run to archive them.")
|
print_info("Run without --dry-run to archive them.")
|
||||||
elif total_archived:
|
elif total_archived:
|
||||||
print_success(f"Cleaned up {total_archived} OpenClaw directory(ies).")
|
print_success(
|
||||||
|
f"Cleaned up {total_archived} OpenClaw "
|
||||||
|
f"{'directory' if total_archived == 1 else 'directories'}."
|
||||||
|
)
|
||||||
print_info("Directories were renamed, not deleted. You can undo by renaming them back.")
|
print_info("Directories were renamed, not deleted. You can undo by renaming them back.")
|
||||||
else:
|
else:
|
||||||
print_info("No directories were archived.")
|
print_info("No directories were archived.")
|
||||||
|
|
|
||||||
|
|
@ -1087,9 +1087,16 @@ def run_doctor(args):
|
||||||
f"{label} deps",
|
f"{label} deps",
|
||||||
f"({critical} critical, {high} high, {moderate} moderate — run: cd {npm_dir} && npm audit fix)"
|
f"({critical} critical, {high} high, {moderate} moderate — run: cd {npm_dir} && npm audit fix)"
|
||||||
)
|
)
|
||||||
issues.append(f"{label} has {total} npm vulnerability(ies)")
|
issues.append(
|
||||||
|
f"{label} has {total} npm "
|
||||||
|
f"{'vulnerability' if total == 1 else 'vulnerabilities'}"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
check_ok(f"{label} deps", f"({moderate} moderate vulnerability(ies))")
|
check_ok(
|
||||||
|
f"{label} deps",
|
||||||
|
f"({moderate} moderate "
|
||||||
|
f"{'vulnerability' if moderate == 1 else 'vulnerabilities'})",
|
||||||
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue