From 0b7d97816773cd51d95ff4d78b81be25aa78f742 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 29 Jul 2025 15:21:32 +0200 Subject: [PATCH] Improve vt command output formatting - Shorten home directory paths to ~ for better readability - Merge version and build date into single line - Apply gray color to output using ANSI escape codes --- web/bin/vt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/web/bin/vt b/web/bin/vt index d4a5c65f..dda92e87 100755 --- a/web/bin/vt +++ b/web/bin/vt @@ -131,13 +131,16 @@ if [ -n "$VIBETUNNEL_PREFER_DERIVED_DATA" ] && [ -n "$VIBETUNNEL_BIN" ]; then VERSION_LINE=$(echo "$VERSION_OUTPUT" | grep "^VibeTunnel Server" | head -n 1) BUILD_LINE=$(echo "$VERSION_OUTPUT" | grep "^Built:" | head -n 1) + # Gray color (bright black) + GRAY='\033[90m' + RESET='\033[0m' + # Always log this info regardless of verbosity level - echo "[VibeTunnel] Using binary: $VIBETUNNEL_BIN" - if [ -n "$VERSION_LINE" ]; then - echo "[VibeTunnel] Version: ${VERSION_LINE#VibeTunnel Server }" - fi - if [ -n "$BUILD_LINE" ]; then - echo "[VibeTunnel] ${BUILD_LINE}" + echo -e "${GRAY}[VibeTunnel] Using binary: $(prettify_path "$VIBETUNNEL_BIN")${RESET}" + if [ -n "$VERSION_LINE" ] && [ -n "$BUILD_LINE" ]; then + echo -e "${GRAY}[VibeTunnel] Version: ${VERSION_LINE#VibeTunnel Server } (${BUILD_LINE})${RESET}" + elif [ -n "$VERSION_LINE" ]; then + echo -e "${GRAY}[VibeTunnel] Version: ${VERSION_LINE#VibeTunnel Server }${RESET}" fi fi