Update mise run dev:outdated with instructional output

This commit is contained in:
Claudio Ortolina
2026-03-08 08:57:36 +00:00
parent fd9f3e7c0c
commit 9433419576
+11 -2
View File
@@ -55,10 +55,19 @@ for i in "${!command_names[@]}"; do
next_step="${command_next_steps[$i]}"
if [ "$result" -eq 0 ]; then
printf "%-20s | %s%-16s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" ""
printf "%-20s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do"
else
printf "%-20s | %s%-16s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step"
printf "%-20s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step"
fi
done
echo "========================================================================"
# Print footer hint if anything is outdated
for result in "${command_results[@]}"; do
if [ "$result" -ne 0 ]; then
echo ""
echo "To update everything, run \`mise run dev:update\`"
break
fi
done