From feb74d67dcff333d0354c8f95ef35e95a6c92654 Mon Sep 17 00:00:00 2001 From: Mihai Chitic Date: Wed, 21 Feb 2024 12:12:51 +0200 Subject: [PATCH] fix add profile with --non-interactive --- cmd/configure/profile/context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/configure/profile/context.go b/cmd/configure/profile/context.go index f6d7fb9..bd1b90b 100644 --- a/cmd/configure/profile/context.go +++ b/cmd/configure/profile/context.go @@ -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"+