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

Method formatProfileText

internal/ui/components/header.go:152–158  ·  view source on GitHub ↗

formatProfileText creates the formatted header text for a profile.

(profileName string)

Source from the content-addressed store, hash-verified

150
151// formatProfileText creates the formatted header text for a profile.
152func (h *Header) formatProfileText(profileName string) string {
153 if profileName == "" {
154 return appName
155 }
156
157 return theme.ReplaceSemanticTags(fmt.Sprintf("%s [info][%s[][-]", appName, profileName))
158}
159
160// ShowActiveProfile displays the active profile in the header.
161func (h *Header) ShowActiveProfile(profileName string) {

Callers 2

ShowActiveProfileMethod · 0.95
restoreProfileMethod · 0.95

Calls 1

ReplaceSemanticTagsFunction · 0.92

Tested by

no test coverage detected