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

Method String

ui/theme/capability.go:57–70  ·  view source on GitHub ↗

String renders the profile name for /config display.

()

Source from the content-addressed store, hash-verified

55
56// String renders the profile name for /config display.
57func (p Profile) String() string {
58 switch p {
59 case ProfileTrueColor:
60 return "truecolor"
61 case ProfileANSI256:
62 return "256-color"
63 case ProfileANSI:
64 return "16-color"
65 case ProfileASCII:
66 return "ascii"
67 default:
68 return "no-tty"
69 }
70}
71
72// Termenv maps the profile to a termenv.Profile so glamour's
73// WithColorProfile can downgrade markdown rendering in lock-step with the

Callers 15

ReadFileContentFunction · 0.45
ProcessDirectoryFunction · 0.45
FormatDirectoryContentFunction · 0.45
loadIgnorePatternsFunction · 0.45
readIgnoreFileFunction · 0.45
GetEnvVariablesSanitizedFunction · 0.45
LogStartupInfoFunction · 0.45
newTLSConfigFromEnvFunction · 0.45
GetGitInfoFunction · 0.45
InitializeLoggerFunction · 0.45
RoundTripMethod · 0.45
sanitizeURLMethod · 0.45

Calls

no outgoing calls

Tested by 1