We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dc521d commit 994e9eeCopy full SHA for 994e9ee
command/pr.go
@@ -26,11 +26,8 @@ work with pull requests.`,
26
var prListCmd = &cobra.Command{
27
Use: "list",
28
Short: "List pull requests",
29
- Run: func(cmd *cobra.Command, args []string) {
30
- err := ExecutePr()
31
- if err != nil {
32
- panic(err) // In the future this should handle the error better, but for now panic seems like a valid reaction
33
- }
+ RunE: func(cmd *cobra.Command, args []string) error {
+ return ExecutePr()
34
},
35
}
36
0 commit comments