(env *execenv.Env)
| 7 | ) |
| 8 | |
| 9 | func newBugStatusOpenCommand(env *execenv.Env) *cobra.Command { |
| 10 | cmd := &cobra.Command{ |
| 11 | Use: "open [BUG_ID]", |
| 12 | Short: "Mark a bug as open", |
| 13 | PreRunE: execenv.LoadBackendEnsureUser(env), |
| 14 | RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error { |
| 15 | return runBugStatusOpen(env, args) |
| 16 | }), |
| 17 | ValidArgsFunction: BugCompletion(env), |
| 18 | } |
| 19 | |
| 20 | return cmd |
| 21 | } |
| 22 | |
| 23 | func runBugStatusOpen(env *execenv.Env, args []string) error { |
| 24 | b, _, err := ResolveSelected(env.Backend, args) |
no test coverage detected