printProfileScalars renders the identity attributes of the profile panel.
(profile memory.UserProfile)
| 780 | |
| 781 | // printProfileScalars renders the identity attributes of the profile panel. |
| 782 | func printProfileScalars(profile memory.UserProfile) { |
| 783 | for _, f := range []struct{ key, value string }{ |
| 784 | {"mem.cmd.profile.name", profile.Name}, |
| 785 | {"mem.cmd.profile.role", profile.Role}, |
| 786 | {"mem.cmd.profile.expertise", profile.ExpertiseLevel}, |
| 787 | {"mem.cmd.profile.language", profile.PreferredLang}, |
| 788 | {"mem.cmd.profile.style", profile.CommStyle}, |
| 789 | {"mem.cmd.profile.company", profile.Company}, |
| 790 | {"mem.cmd.profile.location", profile.Location}, |
| 791 | } { |
| 792 | if f.value != "" { |
| 793 | fmt.Printf(" %s %s\n", colorize(i18n.T(f.key), ColorYellow), f.value) |
| 794 | } |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | // printProfileLists renders the list-shaped attributes of the profile panel. |
| 799 | func printProfileLists(profile memory.UserProfile) { |
no test coverage detected