Skip to content

Commit

Permalink
fix add profile with --non-interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaichitic committed Feb 21, 2024
1 parent 8044cc0 commit feb74d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/configure/profile/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func init() {
}

func askToFillContextOrSkip(profile *config.Profile) error {
if config.GetSettings().NonInteractive {
return nil
}

addContext, err := interactive.ConfirmWithHelp(
"Do you want to set a context for this profile?",
"Context is used to determine which organization, project, environment, and component to use when running commands.\n"+
Expand Down

0 comments on commit feb74d6

Please sign in to comment.