From e6931aaf6f3173c634b03d515287e4a12fd20f15 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Mon, 19 Aug 2019 00:19:58 +0200 Subject: commands: silence export and import nothing events --- commands/bridge_pull.go | 4 +++- commands/bridge_push.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'commands') diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go index 0f3b8413..2bdd24c3 100644 --- a/commands/bridge_pull.go +++ b/commands/bridge_pull.go @@ -73,7 +73,9 @@ func runBridgePull(cmd *cobra.Command, args []string) error { importedIssues := 0 importedIdentities := 0 for result := range events { - fmt.Println(result.String()) + if result.Event != core.ImportEventNothing { + fmt.Println(result.String()) + } switch result.Event { case core.ImportEventBug: diff --git a/commands/bridge_push.go b/commands/bridge_push.go index 77fe8b29..a56f9bc3 100644 --- a/commands/bridge_push.go +++ b/commands/bridge_push.go @@ -71,7 +71,9 @@ func runBridgePush(cmd *cobra.Command, args []string) error { exportedIssues := 0 for result := range events { - fmt.Println(result.String()) + if result.Event != core.ExportEventNothing { + fmt.Println(result.String()) + } switch result.Event { case core.ExportEventBug: -- cgit