ui

package
v0.0.393 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IconX     = "×"
	IconCheck = "✓"
)

Variables

Functions

func Error

func Error(msg string)

func Success

func Success(msg string)

Types

type Progress

type Progress struct {
	Color   color.Attribute
	Label   string
	URN     string
	Final   bool
	Message []string
	time.Duration
}

type ProgressMode

type ProgressMode string
const (
	ProgressModeDev     ProgressMode = "dev"
	ProgressModeDeploy  ProgressMode = "deploy"
	ProgressModeRemove  ProgressMode = "remove"
	ProgressModeRefresh ProgressMode = "refresh"
)

type UI

type UI struct {
	// contains filtered or unexported fields
}

func New

func New(mode ProgressMode) *UI

func (*UI) Destroy

func (u *UI) Destroy()

func (*UI) Event

func (u *UI) Event(evt *server.Event)

func (*UI) Header

func (u *UI) Header(version, app, stage string)

func (*UI) Interrupt

func (u *UI) Interrupt()

func (*UI) Reset

func (u *UI) Reset()

func (*UI) StackEvent added in v0.0.238

func (u *UI) StackEvent(evt *project.StackEvent)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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