Documentation
¶
Overview ¶
internal/display/manager.go
Index ¶
- type ColorFormatter
- func (f *ColorFormatter) FormatCommand(command string) string
- func (f *ColorFormatter) FormatError(message string) string
- func (f *ColorFormatter) FormatInfo(message string) string
- func (f *ColorFormatter) FormatListDescription(description string) string
- func (f *ColorFormatter) FormatListItem(number int, content string) string
- func (f *ColorFormatter) FormatPrompt(pwd, branch string) string
- func (f *ColorFormatter) FormatSectionContent(content string) string
- func (f *ColorFormatter) FormatSectionTitle(title string) string
- func (f *ColorFormatter) FormatSuccess(message string) string
- func (f *ColorFormatter) FormatWarning(message string) string
- func (f *ColorFormatter) FormatWelcome() string
- type DisplayImpl
- func (m *DisplayImpl) DisplayTest()
- func (m *DisplayImpl) ShowCommand(command string)
- func (m *DisplayImpl) ShowError(message string)
- func (m *DisplayImpl) ShowInfo(message string)
- func (m *DisplayImpl) ShowNumberedList(items [][2]string)
- func (m *DisplayImpl) ShowPrompt(pwd, branch string)
- func (m *DisplayImpl) ShowSection(title, content string, opts map[string]string)
- func (m *DisplayImpl) ShowSuccess(message string)
- func (m *DisplayImpl) ShowWarning(message string)
- func (m *DisplayImpl) ShowWelcome()
- func (m *DisplayImpl) StartSpinner(message string)
- func (m *DisplayImpl) StopSpinner()
- type ListItem
- type Section
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()
Click to show internal directories.
Click to hide internal directories.