Documentation
¶
Overview ¶
Package ui provides user interface utilities for the gwq application.
Index ¶
- type Printer
- func (p *Printer) PrintBranches(branches []models.Branch)
- func (p *Printer) PrintConfig(settings map[string]any)
- func (p *Printer) PrintError(err error)
- func (p *Printer) PrintInfo(message string)
- func (p *Printer) PrintSuccess(message string)
- func (p *Printer) PrintWorktreePath(path string)
- func (p *Printer) PrintWorktrees(worktrees []models.Worktree, verbose bool)
- func (p *Printer) PrintWorktreesJSON(worktrees []models.Worktree) error
- func (p *Printer) UseIcons() bool
- func (p *Printer) UseTildeHome() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer handles output formatting.
func (*Printer) PrintBranches ¶
PrintBranches displays branches in a formatted table.
func (*Printer) PrintConfig ¶
PrintConfig displays configuration in a formatted manner.
func (*Printer) PrintError ¶
PrintError displays an error message.
func (*Printer) PrintSuccess ¶
PrintSuccess displays a success message.
func (*Printer) PrintWorktreePath ¶
PrintWorktreePath prints only the worktree path (for cd command).
func (*Printer) PrintWorktrees ¶
PrintWorktrees displays worktrees in a formatted table.
func (*Printer) PrintWorktreesJSON ¶
PrintWorktreesJSON displays worktrees in JSON format.
func (*Printer) UseTildeHome ¶ added in v0.0.4
UseTildeHome returns whether home directory should be displayed as ~.
Click to show internal directories.
Click to hide internal directories.