From 5c1b41766c64f3453fe5693ae1538038963810d4 Mon Sep 17 00:00:00 2001 From: Cristian Lupu Date: Wed, 22 May 2024 17:56:37 +0300 Subject: [PATCH] Expose primary settings in stylish output --- pkg/formatter/stylish.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/formatter/stylish.go b/pkg/formatter/stylish.go index 1ab430c..1b1103e 100644 --- a/pkg/formatter/stylish.go +++ b/pkg/formatter/stylish.go @@ -217,6 +217,14 @@ func tabulateEnvironmentItem(w *tabwriter.Writer, item *sdk.EnvironmentItem) { tabulateBuildSettings(w, buildSettings) } } + + if item.GetType() == "primary" { + fmt.Fprintf(w, "\n%s\n", "Primary Environment Settings") + fmt.Fprintf(w, "%v\t %v\n", "Create Ephemeral On PR", item.GetHasEphemeralCreateOnPr()) + fmt.Fprintf(w, "%v\t %v\n", "Destroy Ephemeral On PR Close", item.GetHasEphemeralDestroyOnPrClose()) + fmt.Fprintf(w, "%v\t %v\n", "Auto Deploy Ephemeral", item.GetHasEphemeralAutoDeploy()) + fmt.Fprintf(w, "%v\t %v\n", "Termination Protection", item.GetHasTerminationProection()) + } } func tabulateComponentCollection(w *tabwriter.Writer, data *sdk.PaginatedComponentCollection) {