aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-12 21:09:30 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-12 21:09:30 +0200
commite2f4b027c946831c3f4f119d87a80513c7cf8fdc (patch)
treeb2ec57c89c49062ab2e8adeacb2646d2f152db80 /commands
parent721ed3248e8bf167a89df14d9fc2bf5b0fe45753 (diff)
downloadgit-bug-e2f4b027c946831c3f4f119d87a80513c7cf8fdc.tar.gz
termui: implement push/pull
Diffstat (limited to 'commands')
-rw-r--r--commands/push.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/push.go b/commands/push.go
index e2c29c68..86c37b46 100644
--- a/commands/push.go
+++ b/commands/push.go
@@ -2,6 +2,8 @@ package commands
import (
"errors"
+ "fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/spf13/cobra"
)
@@ -16,10 +18,13 @@ func runPush(cmd *cobra.Command, args []string) error {
remote = args[0]
}
- if err := bug.Push(repo, remote); err != nil {
+ stdout, err := bug.Push(repo, remote)
+ if err != nil {
return err
}
+ fmt.Println(stdout)
+
return nil
}