Skip to content

Commit 96d94df

Browse files
committed
refactor(zsh): align claude update messages with f5 output style
Add info header, aggregate success/failure counts, and single summary line to match the pattern used by __f5_update_plugins and other update functions.
1 parent b76a374 commit 96d94df

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

zsh/utilities

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -757,23 +757,28 @@ function __f5_update_dotfiles() {
757757
}
758758

759759
function __f5_update_claude() {
760-
local found=0
760+
__log_info "Updating Claude engineering rules..."
761+
762+
local repo_count=0
763+
local repo_errors=0
761764

762765
for dir in "$HOME/.claude" "$HOME"/.claude-*; do
763766
[ -d "$dir/.git" ] || continue
764-
found=1
765-
local label
766-
label=$(basename "$dir")
767767

768768
if __f5_update_git_repo "$dir"; then
769-
__log_success "Updated: $label"
769+
((repo_count++))
770770
else
771-
__log_warning "Failed to update: $label"
771+
((repo_errors++))
772+
__log_warning "Failed to update: $(basename "$dir")"
772773
fi
773774
done
774775

775-
if [ "$found" -eq 0 ]; then
776+
if [ "$((repo_count + repo_errors))" -eq 0 ]; then
776777
__log_skip "No Claude engineering rules repositories found"
778+
elif [ "$repo_errors" -gt 0 ]; then
779+
__log_warning "Updated $repo_count repositories ($repo_errors failed)"
780+
else
781+
__log_success "Updated $repo_count Claude repositories"
777782
fi
778783
}
779784

0 commit comments

Comments
 (0)