diff --git a/bin/README.md b/bin/README.md index 4494447..6faaff3 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:37:59_UTC -- **Git Commit**: 0c626fd +- **Build Time**: 2025-11-05_13:46:28_UTC +- **Git Commit**: 07b3c74 ## 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 0fbd085..655b828 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 cb18fd4..0710ca1 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 ff2cdb0..dc3ee39 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 71d1225..79ba549 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 79c35c1..09eb54f 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 5a60645..1788b6a 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 e3376aa..236fb82 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 a792587..4c5ba42 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 cb49ec5..9bfe63d 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 0d1c2e2..c0b3a39 100755 Binary files a/bin/dbbackup_windows_arm64.exe and b/bin/dbbackup_windows_arm64.exe differ diff --git a/dbbackup b/dbbackup index 71d1225..79ba549 100755 Binary files a/dbbackup and b/dbbackup differ diff --git a/internal/tui/backup_exec.go b/internal/tui/backup_exec.go index 8ab4207..d46b850 100644 --- a/internal/tui/backup_exec.go +++ b/internal/tui/backup_exec.go @@ -46,12 +46,9 @@ func NewBackupExecution(cfg *config.Config, log logger.Logger, parent tea.Model, } func (m BackupExecutionModel) Init() tea.Cmd { - reporter := NewTUIProgressReporter() - // Note: Progress updates are handled through the model's internal state - // No need for callbacks that print to screen - the View() handles all display - + // TUI handles all display through View() - no progress callbacks needed return tea.Batch( - executeBackupWithTUIProgress(m.config, m.logger, m.backupType, m.databaseName, m.ratio, reporter), + executeBackupWithTUIProgress(m.config, m.logger, m.backupType, m.databaseName, m.ratio), backupTickCmd(), ) } @@ -75,7 +72,7 @@ type backupCompleteMsg struct { err error } -func executeBackupWithTUIProgress(cfg *config.Config, log logger.Logger, backupType, dbName string, ratio int, reporter *TUIProgressReporter) tea.Cmd { +func executeBackupWithTUIProgress(cfg *config.Config, log logger.Logger, backupType, dbName string, ratio int) tea.Cmd { return func() tea.Msg { // Use configurable cluster timeout (minutes) from config; default set in config.New() clusterTimeout := time.Duration(cfg.ClusterTimeoutMinutes) * time.Minute @@ -100,7 +97,8 @@ func executeBackupWithTUIProgress(cfg *config.Config, log logger.Logger, backupT } } - engine := backup.NewSilent(cfg, log, dbClient, reporter) + // Pass nil as indicator - TUI itself handles all display, no stdout printing + engine := backup.NewSilent(cfg, log, dbClient, nil) var backupErr error switch backupType {