aboutsummaryrefslogtreecommitdiffstats
path: root/commands/push.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/push.go')
-rw-r--r--commands/push.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/commands/push.go b/commands/push.go
index 89385f10..9d6ca7df 100644
--- a/commands/push.go
+++ b/commands/push.go
@@ -10,13 +10,12 @@ func newPushCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "push [REMOTE]",
- Short: "Push bugs update to a git remote.",
- PreRunE: loadBackend(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ Use: "push [REMOTE]",
+ Short: "Push bugs update to a git remote.",
+ PreRunE: loadBackend(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runPush(env, args)
- },
+ }),
}
return cmd