From 5d9be49f6cdc69f6e19d91b5426a4f42524edd4e Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Mon, 2 Sep 2024 22:45:19 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20Schema=20and=20Host=20transposed=20in=20?= =?UTF-8?q?output=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dump/dump.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/dump/dump.go b/internal/dump/dump.go index 614ed08..d31fbbe 100644 --- a/internal/dump/dump.go +++ b/internal/dump/dump.go @@ -99,8 +99,8 @@ func (c *Client) Dump() error { // Construct schema output fmt.Printf("%s Dumping schema %s from %s\n\r", style.Success(icon.Info), - lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), lipgloss.NewStyle().Foreground(color.Yellow).Render(fmt.Sprint(c.databaseName)), + lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), ) response, err := exec.Command(c.executable, @@ -126,15 +126,15 @@ func (c *Client) Dump() error { fmt.Printf( "%s Done dumping schema %s from %s\n\r", style.Success(icon.Check), - lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), lipgloss.NewStyle().Foreground(color.Yellow).Render(fmt.Sprint(c.databaseName)), + lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), ) // Construct data output fmt.Printf("%s Dumping data %s from %s\n\r", style.Success(icon.Info), - lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), lipgloss.NewStyle().Foreground(color.Yellow).Render(fmt.Sprint(c.databaseName)), + lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), ) _ = exec.Command(c.executable, @@ -151,15 +151,15 @@ func (c *Client) Dump() error { fmt.Printf( "%s Done dumping data %s from %s\n\r", style.Success(icon.Check), - lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), lipgloss.NewStyle().Foreground(color.Yellow).Render(fmt.Sprint(c.databaseName)), + lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), ) // Construct routines/triggers output fmt.Printf("%s Dumping routines %s from %s\n\r", style.Success(icon.Info), - lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), lipgloss.NewStyle().Foreground(color.Yellow).Render(fmt.Sprint(c.databaseName)), + lipgloss.NewStyle().Foreground(color.Purple).Render(c.hostname), ) _ = exec.Command(c.executable,