(env *execenv.Env)
| 7 | ) |
| 8 | |
| 9 | func newBugTitleCommand(env *execenv.Env) *cobra.Command { |
| 10 | cmd := &cobra.Command{ |
| 11 | Use: "title [BUG_ID]", |
| 12 | Short: "Display the title of a bug", |
| 13 | PreRunE: execenv.LoadBackend(env), |
| 14 | RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error { |
| 15 | return runBugTitle(env, args) |
| 16 | }), |
| 17 | ValidArgsFunction: BugCompletion(env), |
| 18 | } |
| 19 | |
| 20 | cmd.AddCommand(newBugTitleEditCommand(env)) |
| 21 | |
| 22 | return cmd |
| 23 | } |
| 24 | |
| 25 | func runBugTitle(env *execenv.Env, args []string) error { |
| 26 | b, _, err := ResolveSelected(env.Backend, args) |
no test coverage detected