aboutsummaryrefslogtreecommitdiffstats
path: root/commands/status_close.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/status_close.go')
-rw-r--r--commands/status_close.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/commands/status_close.go b/commands/status_close.go
index 76f2a758..8541aa0b 100644
--- a/commands/status_close.go
+++ b/commands/status_close.go
@@ -9,13 +9,12 @@ func newStatusCloseCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "close [ID]",
- Short: "Mark a bug as closed.",
- PreRunE: loadBackendEnsureUser(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ Use: "close [ID]",
+ Short: "Mark a bug as closed.",
+ PreRunE: loadBackendEnsureUser(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runStatusClose(env, args)
- },
+ }),
}
return cmd