aboutsummaryrefslogtreecommitdiffstats
path: root/commands/title.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/title.go')
-rw-r--r--commands/title.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/commands/title.go b/commands/title.go
index 7afa07ce..c4293530 100644
--- a/commands/title.go
+++ b/commands/title.go
@@ -9,13 +9,12 @@ func newTitleCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "title [ID]",
- Short: "Display or change a title of a bug.",
- PreRunE: loadBackend(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ Use: "title [ID]",
+ Short: "Display or change a title of a bug.",
+ PreRunE: loadBackend(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runTitle(env, args)
- },
+ }),
}
cmd.AddCommand(newTitleEditCommand())