mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +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)
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue