aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_push.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/bridge_push.go')
-rw-r--r--commands/bridge_push.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/commands/bridge_push.go b/commands/bridge_push.go
index 64e3ff4b..a232f0f0 100644
--- a/commands/bridge_push.go
+++ b/commands/bridge_push.go
@@ -17,13 +17,12 @@ func newBridgePushCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "push [NAME]",
- Short: "Push updates.",
- PreRunE: loadBackendEnsureUser(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ Use: "push [NAME]",
+ Short: "Push updates.",
+ PreRunE: loadBackendEnsureUser(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runBridgePush(env, args)
- },
+ }),
Args: cobra.MaximumNArgs(1),
}