ui

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailureEmoji           = "❌"
	SuccessEmoji           = "✅"
	FireEmoji              = "🔥"
	TargetEmoji            = "🎯"
	ResourceHighlightStyle = lipgloss.NewStyle().
							Bold(true).
							Foreground(lipgloss.Color("202"))
	BoldWarningTextStyle = lipgloss.NewStyle().
							Padding(1).
							Bold(true).
							Italic(true).
							Foreground(lipgloss.Color("202"))
	BlinkingWarningStyle = lipgloss.NewStyle().
							Bold(true).
							Italic(true).
							Blink(true).
							Underline(true).
							Foreground(lipgloss.Color("201"))
)

Functions

func PrintGeneralErrorReport

func PrintGeneralErrorReport(w io.Writer)

func PrintRunReport

func PrintRunReport(w io.Writer)

func RenderNukeConfirmationPrompt added in v0.33.0

func RenderNukeConfirmationPrompt(prompt string, numRetryCount int) (bool, error)

func RenderQueryAsBulletList added in v0.33.0

func RenderQueryAsBulletList(query *aws.Query) error

func RenderResourceTypesAsBulletList added in v0.33.0

func RenderResourceTypesAsBulletList(resourceTypes []string) error

func RenderResourcesAsTable added in v0.33.0

func RenderResourcesAsTable(account *aws.AwsAccountResources) error

func RenderRunReport added in v0.27.1

func RenderRunReport()

RenderRunReport should be called at the end of a support cloud-nuke function It will print a table showing resources were deleted, and what errors occurred Note that certain functions don't support the report table, such as aws-inspect, which prints its own findings out directly to os.Stdout

func UrgentMessage

func UrgentMessage(s string)

UrgentMessage is a convenience method to display the supplied string in our pre-configured BlinkingWarningStyle This is appropriate to use as the final prompt to confirm the user really wants to nuke all selected resources

func WarningMessage

func WarningMessage(s string)

WarningMessage is a convenience method to display the supplied string in our pre-configured BoldWarningTextStyle

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL