MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / IconText

Function IconText

internal/display/icons.go:5–10  ·  view source on GitHub ↗

IconText prefixes text with icon when icon display is enabled.

(icon, text string, showIcons bool)

Source from the content-addressed store, hash-verified

3
4// IconText prefixes text with icon when icon display is enabled.
5func IconText(icon, text string, showIcons bool) string {
6 if !showIcons || icon == "" {
7 return text
8 }
9 return icon + " " + text
10}

Callers 12

HandleValidationErrorFunction · 0.92
autoEncryptConfigFunction · 0.92
RunAppFunction · 0.92
SaveConfigToFileFunction · 0.92
WaitForEnterToReturnFunction · 0.92
BootstrapFunction · 0.92
StartApplicationFunction · 0.92
HandleConfigWizardFunction · 0.92
handleStartupErrorFunction · 0.92
MergeWithFileMethod · 0.92
TestIconTextFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIconTextFunction · 0.68