display

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
)

Jump to

Keyboard shortcuts

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