Surface runtime health in menu

This commit is contained in:
2026-04-17 12:27:17 +08:00
parent 818c52c10d
commit 8813cffd12
4 changed files with 48 additions and 3 deletions

View File

@@ -146,6 +146,14 @@ rule_health_mark() {
fi
}
rules_runtime_mark() {
local line
while IFS= read -r line || [[ -n ${line} ]]; do
[[ -z ${line} || $(rule_health_mark "${line}") == '✓' ]] || { printf '[!]\n'; return 0; }
done < <(storage_list)
printf '[✓]\n'
}
render_rules_row() {
printf '%s %s %s %s %s %s %s %s\n' \
"$(pad_right "${1-}" 3)" "$(pad_right "${2-}" 10)" "$(pad_right "${3-}" 10)" "$(pad_right "${4-}" 32)" \