Suppress debug output for worktree commands

Extend SUPPRESS_OUTPUT logic to include vt follow, vt unfollow, and vt git event
commands when using custom VT folder, matching the behavior of vt status and vt title.
This commit is contained in:
Peter Steinberger 2025-08-02 17:53:03 +02:00
parent af55b061cb
commit 36b2d838a5

View file

@ -144,7 +144,7 @@ fi
# Check if this is a command that should suppress wrapper output
SUPPRESS_OUTPUT=false
# Debug: echo "First argument at line 139: '$1'" >&2
if [[ "$1" == "title" || "$1" == "status" || "$1" == "--version" || "$1" == "version" ]]; then
if [[ "$1" == "title" || "$1" == "status" || "$1" == "--version" || "$1" == "version" || "$1" == "follow" || "$1" == "unfollow" || ("$1" == "git" && "$2" == "event") ]]; then
SUPPRESS_OUTPUT=true
fi