diff --git a/bin/README.md b/bin/README.md index 5c1f37a..37645c1 100644 --- a/bin/README.md +++ b/bin/README.md @@ -4,8 +4,8 @@ This directory contains pre-compiled binaries for the DB Backup Tool across mult ## Build Information - **Version**: 1.1.0 -- **Build Time**: 2025-11-05_13:06:25_UTC -- **Git Commit**: f2f6021 +- **Build Time**: 2025-11-05_13:20:08_UTC +- **Git Commit**: 161f577 ## Recent Updates (v1.1.0) - ✅ Fixed TUI progress display with line-by-line output diff --git a/bin/dbbackup_darwin_amd64 b/bin/dbbackup_darwin_amd64 index 3c92428..2358fd1 100755 Binary files a/bin/dbbackup_darwin_amd64 and b/bin/dbbackup_darwin_amd64 differ diff --git a/bin/dbbackup_darwin_arm64 b/bin/dbbackup_darwin_arm64 index 04d8c2e..b9a3d8b 100755 Binary files a/bin/dbbackup_darwin_arm64 and b/bin/dbbackup_darwin_arm64 differ diff --git a/bin/dbbackup_freebsd_amd64 b/bin/dbbackup_freebsd_amd64 index 1b22c8d..ee16a64 100755 Binary files a/bin/dbbackup_freebsd_amd64 and b/bin/dbbackup_freebsd_amd64 differ diff --git a/bin/dbbackup_linux_amd64 b/bin/dbbackup_linux_amd64 index b86284d..48110a4 100755 Binary files a/bin/dbbackup_linux_amd64 and b/bin/dbbackup_linux_amd64 differ diff --git a/bin/dbbackup_linux_arm64 b/bin/dbbackup_linux_arm64 index 08bf432..93e1d21 100755 Binary files a/bin/dbbackup_linux_arm64 and b/bin/dbbackup_linux_arm64 differ diff --git a/bin/dbbackup_linux_arm_armv7 b/bin/dbbackup_linux_arm_armv7 index b69e403..b72a593 100755 Binary files a/bin/dbbackup_linux_arm_armv7 and b/bin/dbbackup_linux_arm_armv7 differ diff --git a/bin/dbbackup_netbsd_amd64 b/bin/dbbackup_netbsd_amd64 index c090f0b..e8f8f97 100755 Binary files a/bin/dbbackup_netbsd_amd64 and b/bin/dbbackup_netbsd_amd64 differ diff --git a/bin/dbbackup_openbsd_amd64 b/bin/dbbackup_openbsd_amd64 index 6d27bef..992f62e 100755 Binary files a/bin/dbbackup_openbsd_amd64 and b/bin/dbbackup_openbsd_amd64 differ diff --git a/bin/dbbackup_windows_amd64.exe b/bin/dbbackup_windows_amd64.exe index 2025a47..95a50a1 100755 Binary files a/bin/dbbackup_windows_amd64.exe and b/bin/dbbackup_windows_amd64.exe differ diff --git a/bin/dbbackup_windows_arm64.exe b/bin/dbbackup_windows_arm64.exe index 07a9813..a986e44 100755 Binary files a/bin/dbbackup_windows_arm64.exe and b/bin/dbbackup_windows_arm64.exe differ diff --git a/cmd/placeholder.go b/cmd/placeholder.go index c2c6015..5242130 100644 --- a/cmd/placeholder.go +++ b/cmd/placeholder.go @@ -11,6 +11,7 @@ import ( "strings" "time" + "dbbackup/internal/logger" "dbbackup/internal/tui" "github.com/spf13/cobra" ) @@ -58,8 +59,9 @@ var interactiveCmd = &cobra.Command{ Long: `Start the interactive menu system for guided backup operations.`, Aliases: []string{"menu", "ui"}, RunE: func(cmd *cobra.Command, args []string) error { - // Start the interactive TUI - return tui.RunInteractiveMenu(cfg, log) + // Start the interactive TUI with silent logger to prevent console output conflicts + silentLog := logger.NewSilent() + return tui.RunInteractiveMenu(cfg, silentLog) }, } diff --git a/dbbackup b/dbbackup index b86284d..48110a4 100755 Binary files a/dbbackup and b/dbbackup differ diff --git a/internal/logger/logger.go b/internal/logger/logger.go index e8c24e4..58a9134 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -78,6 +78,20 @@ func New(level, format string) Logger { } } +// NewSilent creates a logger that discards all output (for TUI mode) +func NewSilent() Logger { + l := logrus.New() + l.SetLevel(logrus.InfoLevel) + l.SetOutput(io.Discard) // Discard all log output + l.SetFormatter(&CleanFormatter{}) + + return &logger{ + logrus: l, + level: logrus.InfoLevel, + format: "text", + } +} + func (l *logger) Debug(msg string, args ...any) { l.logWithFields(logrus.DebugLevel, msg, args...) }