formatProfileText creates the formatted header text for a profile.
(profileName string)
| 150 | |
| 151 | // formatProfileText creates the formatted header text for a profile. |
| 152 | func (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. |
| 161 | func (h *Header) ShowActiveProfile(profileName string) { |
no test coverage detected