We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095de77 commit 2c22655Copy full SHA for 2c22655
engine/main.go
@@ -23,7 +23,9 @@ func init() {
23
}
24
25
func main() {
26
- mainCmd.Execute()
+ if err := mainCmd.Execute(); err != nil {
27
+ os.Exit(1)
28
+ }
29
30
31
var mainCmd = &cobra.Command{
engine/worker/main.go
@@ -1,5 +1,9 @@
1
package main
2
3
+import (
4
+ "os"
5
+)
6
+
7
8
cmd := cmdMain()
9
cmd.AddCommand(cmdExport)
@@ -22,5 +26,7 @@ func main() {
22
// last command: doc, this command is hidden
cmd.AddCommand(cmdDoc(cmd))
- cmd.Execute()
+ if err := cmd.Execute(); err != nil {
32
0 commit comments