File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,19 @@ limitations under the License.
17
17
package main
18
18
19
19
import (
20
- "os"
21
-
22
20
"voyagermesh.dev/cli/pkg/cmds"
23
21
24
22
"gomodules.xyz/logs"
25
23
_ "k8s.io/client-go/plugin/pkg/client/auth"
24
+ "k8s.io/klog/v2"
26
25
)
27
26
28
27
func main () {
29
- logs .InitLogs ()
28
+ rootCmd := cmds .NewRootCmd ()
29
+ logs .Init (rootCmd , false )
30
30
defer logs .FlushLogs ()
31
31
32
- if err := cmds . NewRootCmd () .Execute (); err != nil {
33
- os . Exit ( 1 )
32
+ if err := rootCmd .Execute (); err != nil {
33
+ klog . Fatal ( err )
34
34
}
35
35
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ require (
9
9
gomodules.xyz/x v0.0.8
10
10
k8s.io/apimachinery v0.21.2
11
11
k8s.io/client-go v0.21.2
12
+ k8s.io/klog/v2 v2.8.0
12
13
kmodules.xyz/client-go v0.0.0-20211013093146-1fbfd52e78c9
13
14
sigs.k8s.io/yaml v1.2.0
14
15
voyagermesh.dev/apimachinery v0.1.3
@@ -78,7 +79,6 @@ require (
78
79
gopkg.in/yaml.v2 v2.4.0 // indirect
79
80
k8s.io/api v0.21.2 // indirect
80
81
k8s.io/apiextensions-apiserver v0.21.2 // indirect
81
- k8s.io/klog/v2 v2.8.0 // indirect
82
82
k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7 // indirect
83
83
k8s.io/utils v0.0.0-20210527160623-6fdb442a123b // indirect
84
84
kmodules.xyz/monitoring-agent-api v0.0.0-20210928135619-38ca075a2dbd // indirect
You can’t perform that action at this time.
0 commit comments