We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84069e8 commit 5132d13Copy full SHA for 5132d13
1 file changed
cobracmd/root.go
@@ -1,6 +1,7 @@
1
package cobracmd
2
3
import (
4
+ "log"
5
"os"
6
7
cmd "github.com/can3p/kleiner/shared/cmd/cobra"
@@ -27,7 +28,12 @@ func Execute() {
27
28
29
func init() {
30
info := buildinfo.Info()
-
31
cmd.Setup(info, rootCmd)
32
+
33
+ defer func() {
34
+ if r := recover(); r != nil {
35
+ log.Printf("WARNING: %v", r)
36
+ }
37
+ }()
38
published.MaybeNotifyAboutNewVersion(info)
39
}
0 commit comments