Skip to content

Commit a41f969

Browse files
new changes
1 parent e01449f commit a41f969

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internal/commands/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ func NewAstCLI(
126126
if cmd.Flags().Changed(params.AccessKeyIDFlag) || cmd.Flags().Changed(params.AccessKeySecretFlag) {
127127
viper.Set(params.AstAPIKey, "")
128128
}
129-
if cmd.Flags().Changed(params.AstAPIKeyFlag) {
129+
/*if cmd.Flags().Changed(params.AstAPIKeyFlag) {
130130
viper.Set(params.AccessKeyIDConfigKey, "")
131-
}
131+
viper.Set(params.AccessKeySecretConfigKey, "")
132+
}*/
132133
// Need to check the __complete command to allow correct behavior of the autocomplete
133134
if len(args) > 0 && cmd.Name() != params.Help && cmd.Name() != "__complete" {
134135
_ = cmd.Help()

0 commit comments

Comments
 (0)