Skip to content

Commit

Permalink
Expose primary settings in stylish output
Browse files Browse the repository at this point in the history
  • Loading branch information
BunnyCrlu committed May 22, 2024
1 parent 92917df commit 5c1b417
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/formatter/stylish.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Check failure on line 226 in pkg/formatter/stylish.go

View workflow job for this annotation

GitHub Actions / audit

item.GetHasTerminationProection undefined (type *sdk.EnvironmentItem has no field or method GetHasTerminationProection)
}
}

func tabulateComponentCollection(w *tabwriter.Writer, data *sdk.PaginatedComponentCollection) {
Expand Down

0 comments on commit 5c1b417

Please sign in to comment.