Documentation
¶
Index ¶
- type DisplayManager
- func (dm *DisplayManager) FormatAchievement(name, description string) string
- func (dm *DisplayManager) FormatLevelUp(newLevel int) string
- func (dm *DisplayManager) FormatStats(basicStats *stats.BasicStats, userProgress *models.UserProgress) string
- func (dm *DisplayManager) GetMode() DisplayMode
- func (dm *DisplayManager) IsQuietMode() bool
- func (dm *DisplayManager) ShouldShowEasterEgg() bool
- type DisplayMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisplayManager ¶
type DisplayManager struct {
// contains filtered or unexported fields
}
DisplayManager handles different display modes
func NewDisplayManager ¶
func NewDisplayManager(mode DisplayMode, ciEnvironment bool) *DisplayManager
NewDisplayManager creates a new display manager
func (*DisplayManager) FormatAchievement ¶
func (dm *DisplayManager) FormatAchievement(name, description string) string
FormatAchievement formats achievement notification
func (*DisplayManager) FormatLevelUp ¶
func (dm *DisplayManager) FormatLevelUp(newLevel int) string
FormatLevelUp formats level up notification
func (*DisplayManager) FormatStats ¶
func (dm *DisplayManager) FormatStats(basicStats *stats.BasicStats, userProgress *models.UserProgress) string
FormatStats formats stats according to the current display mode
func (*DisplayManager) GetMode ¶
func (dm *DisplayManager) GetMode() DisplayMode
GetMode returns the current display mode
func (*DisplayManager) IsQuietMode ¶
func (dm *DisplayManager) IsQuietMode() bool
IsQuietMode checks if in quiet mode (CI environment)
func (*DisplayManager) ShouldShowEasterEgg ¶
func (dm *DisplayManager) ShouldShowEasterEgg() bool
ShouldShowEasterEgg determines if easter eggs should be shown
type DisplayMode ¶
type DisplayMode string
DisplayMode represents different display modes
const ( ModeMinimal DisplayMode = "minimal" ModeRich DisplayMode = "rich" ModeQuiet DisplayMode = "quiet" // For CI environments )
Click to show internal directories.
Click to hide internal directories.