From 94334195760dd3f62d277611579696a2579ff7f2 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 8 Mar 2026 08:57:36 +0000 Subject: [PATCH] Update mise run dev:outdated with instructional output --- scripts/dev/outdated | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/dev/outdated b/scripts/dev/outdated index 007075ea..b065430a 100755 --- a/scripts/dev/outdated +++ b/scripts/dev/outdated @@ -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