From c6931ffc6c7b6cb29b93fe5029e4045c8ef49adc Mon Sep 17 00:00:00 2001 From: David Moore Date: Wed, 2 Apr 2025 10:33:09 +1100 Subject: [PATCH] fix: removes beta providers preview flag message --- pkg/view/tui/commands/stack/new/stack_new.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/view/tui/commands/stack/new/stack_new.go b/pkg/view/tui/commands/stack/new/stack_new.go index 4d59f075..7200e4a2 100644 --- a/pkg/view/tui/commands/stack/new/stack_new.go +++ b/pkg/view/tui/commands/stack/new/stack_new.go @@ -20,7 +20,6 @@ import ( "fmt" "os" "path/filepath" - "slices" "strings" "github.com/charmbracelet/bubbles/spinner" @@ -29,7 +28,6 @@ import ( "github.com/samber/lo" "github.com/spf13/afero" - "github.com/nitrictech/cli/pkg/preview" "github.com/nitrictech/cli/pkg/project" "github.com/nitrictech/cli/pkg/project/stack" clitui "github.com/nitrictech/cli/pkg/view/tui" @@ -238,16 +236,6 @@ func (m Model) View() string { indent.Addln("Check the file for any additional configuration required.") indent.Break() - provName := providerLabelToValue(m.ProviderName()) - - if (provName == "aws-tf" || provName == "gcp-tf") && !slices.Contains(m.projectConfig.Preview, preview.Feature_BetaProviders) { - indent.Add("Add ") - indent.Add("beta-providers").WithStyle(highlightStyle) - indent.Add(" to your nitric.yaml preview config to enable preview provider support.") - indent.Break() - indent.Break() - } - indent.Add("Then deploy your stack using ") indent.Addln("nitric up").WithStyle(highlightStyle)