ui

package
v0.0.225 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 12 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) Start

func (u *UI) Start()

func (*UI) Trigger

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

Jump to

Keyboard shortcuts

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