diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-12 21:09:30 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-12 21:09:30 +0200 |
commit | e2f4b027c946831c3f4f119d87a80513c7cf8fdc (patch) | |
tree | b2ec57c89c49062ab2e8adeacb2646d2f152db80 /commands | |
parent | 721ed3248e8bf167a89df14d9fc2bf5b0fe45753 (diff) | |
download | git-bug-e2f4b027c946831c3f4f119d87a80513c7cf8fdc.tar.gz |
termui: implement push/pull
Diffstat (limited to 'commands')
-rw-r--r-- | commands/push.go | 7 |
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 } |