tui

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TUIDisplayer

type TUIDisplayer interface {
	ShowTitleAndDescription(title, description string)
	ShowTitle(title string)
	ShowSubTitle(mainTitle, subtitle string)
	ShowDescription(description string)
	ShowInitDetails(jobName, taskName, workDir, mountDir, targetDir string)
	ShowTaskDetails(taskName, actionName, workDir, mountDir, targetDir string)
}

func NewTitle

func NewTitle() TUIDisplayer

type TUIMessage

type TUIMessage struct {
}

func (*TUIMessage) ShowError

func (t *TUIMessage) ShowError(title, msg string, err error)

func (*TUIMessage) ShowInfo

func (t *TUIMessage) ShowInfo(title, msg string)

func (*TUIMessage) ShowSuccess

func (t *TUIMessage) ShowSuccess(title, msg string)

func (*TUIMessage) ShowWarning

func (t *TUIMessage) ShowWarning(title, msg string)

type TUIMessenger

type TUIMessenger interface {
	ShowError(title, msg string, err error)
	ShowInfo(title, msg string)
	ShowSuccess(title, msg string)
	ShowWarning(title, msg string)
}

func NewTUIMessage

func NewTUIMessage() TUIMessenger

type TUITitle

type TUITitle struct {
}

func (*TUITitle) ShowDescription

func (t *TUITitle) ShowDescription(description string)

func (*TUITitle) ShowInitDetails

func (t *TUITitle) ShowInitDetails(jobName, taskName, workDir, mountDir, targetDir string)

func (*TUITitle) ShowSubTitle

func (t *TUITitle) ShowSubTitle(mainTitle string, subTitle string)

func (*TUITitle) ShowTaskDetails

func (t *TUITitle) ShowTaskDetails(taskName, actionName, workDir, mountDir, targetDir string)

func (*TUITitle) ShowTitle

func (t *TUITitle) ShowTitle(title string)

func (*TUITitle) ShowTitleAndDescription

func (t *TUITitle) ShowTitleAndDescription(title, description string)

Jump to

Keyboard shortcuts

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