MCPcopy Create free account
hub / github.com/diillson/chatcli / printProfileScalars

Function printProfileScalars

cli/memory_command.go:782–796  ·  view source on GitHub ↗

printProfileScalars renders the identity attributes of the profile panel.

(profile memory.UserProfile)

Source from the content-addressed store, hash-verified

780
781// printProfileScalars renders the identity attributes of the profile panel.
782func 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.
799func printProfileLists(profile memory.UserProfile) {

Callers 1

showMemoryProfileMethod · 0.85

Calls 2

TFunction · 0.92
colorizeFunction · 0.85

Tested by

no test coverage detected