From 5ca6f8a91d8e640bbff6b54ca1724ede21c0a119 Mon Sep 17 00:00:00 2001 From: Siddhant Khare Date: Tue, 25 Jun 2024 09:50:28 +0530 Subject: [PATCH 1/2] fix: breaking change output of store import cmd --- cmd/store/import.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/store/import.go b/cmd/store/import.go index bb8b580..666bfd2 100644 --- a/cmd/store/import.go +++ b/cmd/store/import.go @@ -183,8 +183,6 @@ func importStore( return nil, fmt.Errorf("failed to finish progress bar: %w", err) } - fmt.Println("✅ Store imported") - return response, nil } From 2d81b67cfaf4acebadd6aa7b95b8a4171145d9ba Mon Sep 17 00:00:00 2001 From: Siddhant Khare Date: Tue, 25 Jun 2024 09:44:33 +0000 Subject: [PATCH 2/2] pass `progressbar.OptionSetWriter` to progressBar --- cmd/store/import.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/store/import.go b/cmd/store/import.go index 666bfd2..4823ad0 100644 --- a/cmd/store/import.go +++ b/cmd/store/import.go @@ -139,6 +139,7 @@ func importStore( // Initialize progress bar bar := progressbar.NewOptions(len(storeData.Tuples), + progressbar.OptionSetWriter(os.Stderr), progressbar.OptionSetDescription("Importing tuples"), progressbar.OptionShowCount(), progressbar.OptionSetWidth(progressBarWidth),