display

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

internal/display/manager.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorFormatter

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

func NewColorFormatter

func NewColorFormatter(version string) *ColorFormatter

func (*ColorFormatter) FormatCommand

func (f *ColorFormatter) FormatCommand(command string) string

func (*ColorFormatter) FormatError

func (f *ColorFormatter) FormatError(message string) string

func (*ColorFormatter) FormatInfo

func (f *ColorFormatter) FormatInfo(message string) string

func (*ColorFormatter) FormatListDescription

func (f *ColorFormatter) FormatListDescription(description string) string

func (*ColorFormatter) FormatListItem

func (f *ColorFormatter) FormatListItem(number int, content string) string

func (*ColorFormatter) FormatPrompt

func (f *ColorFormatter) FormatPrompt(pwd, branch string) string

func (*ColorFormatter) FormatSectionContent

func (f *ColorFormatter) FormatSectionContent(content string) string

func (*ColorFormatter) FormatSectionTitle

func (f *ColorFormatter) FormatSectionTitle(title string) string

func (*ColorFormatter) FormatSuccess

func (f *ColorFormatter) FormatSuccess(message string) string

func (*ColorFormatter) FormatWarning

func (f *ColorFormatter) FormatWarning(message string) string

func (*ColorFormatter) FormatWelcome

func (f *ColorFormatter) FormatWelcome() string

type DisplayImpl

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

func NewManager

func NewManager(version string) *DisplayImpl

func (*DisplayImpl) DisplayTest

func (m *DisplayImpl) DisplayTest()

DisplayTest runs a test of all display features

func (*DisplayImpl) ShowCommand

func (m *DisplayImpl) ShowCommand(command string)

func (*DisplayImpl) ShowError

func (m *DisplayImpl) ShowError(message string)

func (*DisplayImpl) ShowInfo

func (m *DisplayImpl) ShowInfo(message string)

func (*DisplayImpl) ShowNumberedList

func (m *DisplayImpl) ShowNumberedList(items [][2]string)

func (*DisplayImpl) ShowPrompt

func (m *DisplayImpl) ShowPrompt(pwd, branch string)

Required methods for agent.DisplayManager interface

func (*DisplayImpl) ShowSection

func (m *DisplayImpl) ShowSection(title, content string, opts map[string]string)

func (*DisplayImpl) ShowSuccess

func (m *DisplayImpl) ShowSuccess(message string)

func (*DisplayImpl) ShowWarning

func (m *DisplayImpl) ShowWarning(message string)

func (*DisplayImpl) ShowWelcome

func (m *DisplayImpl) ShowWelcome()

ShowWelcome displays the welcome message

func (*DisplayImpl) StartSpinner

func (m *DisplayImpl) StartSpinner(message string)

func (*DisplayImpl) StopSpinner

func (m *DisplayImpl) StopSpinner()

type ListItem

type ListItem struct {
	Content     string
	Description string
}

Add to ColorFormatter

type Section

type Section struct {
	Title    string
	Content  string
	Icon     string
	Divider  string
	Numbered bool
}

Jump to

Keyboard shortcuts

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