We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27b70cf commit 03ac864Copy full SHA for 03ac864
cmd/argocd/commands/configure.go
@@ -2,6 +2,7 @@ package commands
2
3
import (
4
"fmt"
5
+ "os"
6
"strconv"
7
8
"github.com/spf13/cobra"
@@ -27,6 +28,10 @@ argocd configure --prompts-enabled=false`,
27
28
Run: func(_ *cobra.Command, _ []string) {
29
localCfg, err := localconfig.ReadLocalConfig(globalClientOpts.ConfigPath)
30
errors.CheckError(err)
31
+ if localCfg == nil {
32
+ fmt.Println("No local configuration found")
33
+ os.Exit(1)
34
+ }
35
36
localCfg.PromptsEnabled = promptsEnabled
37
0 commit comments