mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
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
This commit is contained in:
parent
909a9e8249
commit
0b7d978167
1 changed files with 9 additions and 6 deletions
15
web/bin/vt
15
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)
|
VERSION_LINE=$(echo "$VERSION_OUTPUT" | grep "^VibeTunnel Server" | head -n 1)
|
||||||
BUILD_LINE=$(echo "$VERSION_OUTPUT" | grep "^Built:" | 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
|
# Always log this info regardless of verbosity level
|
||||||
echo "[VibeTunnel] Using binary: $VIBETUNNEL_BIN"
|
echo -e "${GRAY}[VibeTunnel] Using binary: $(prettify_path "$VIBETUNNEL_BIN")${RESET}"
|
||||||
if [ -n "$VERSION_LINE" ]; then
|
if [ -n "$VERSION_LINE" ] && [ -n "$BUILD_LINE" ]; then
|
||||||
echo "[VibeTunnel] Version: ${VERSION_LINE#VibeTunnel Server }"
|
echo -e "${GRAY}[VibeTunnel] Version: ${VERSION_LINE#VibeTunnel Server } (${BUILD_LINE})${RESET}"
|
||||||
fi
|
elif [ -n "$VERSION_LINE" ]; then
|
||||||
if [ -n "$BUILD_LINE" ]; then
|
echo -e "${GRAY}[VibeTunnel] Version: ${VERSION_LINE#VibeTunnel Server }${RESET}"
|
||||||
echo "[VibeTunnel] ${BUILD_LINE}"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue