From a81b383be0ee7a25a6b152b9a01bdee6194c2ce3 Mon Sep 17 00:00:00 2001 From: zzxwill Date: Mon, 3 Aug 2020 21:21:14 +0800 Subject: [PATCH] address comments from @Wonderflow --- pkg/cmd/ls.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/ls.go b/pkg/cmd/ls.go index ca389ccd1..2e8266b76 100644 --- a/pkg/cmd/ls.go +++ b/pkg/cmd/ls.go @@ -3,6 +3,7 @@ package cmd import ( "context" "fmt" + "os" "strings" cmdutil "github.com/cloud-native-application/rudrx/pkg/cmd/util" @@ -23,6 +24,7 @@ func NewAppsCommand(f cmdutil.Factory, c client.Client, ioStreams cmdutil.IOStre env, err := GetEnv() if err != nil { ioStreams.Errorf("Failed to get Env information:%s", err) + os.Exit(1) } printApplicationList(ctx, c, "", env.Namespace) },