Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions pkg/view/tui/commands/stack/new/stack_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"fmt"
"os"
"path/filepath"
"slices"
"strings"

"github.com/charmbracelet/bubbles/spinner"
Expand All @@ -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"
Expand Down Expand Up @@ -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)

Expand Down