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

Method String

cli/compress/compress.go:53–64  ·  view source on GitHub ↗

String renders the mode for /config and logs.

()

Source from the content-addressed store, hash-verified

51
52// String renders the mode for /config and logs.
53func (m Mode) String() string {
54 switch m {
55 case ModeOff:
56 return "off"
57 case ModeLosslessOnly:
58 return "lossless"
59 case ModeLossyWithCCR:
60 return "lossy-with-ccr"
61 default:
62 return "unknown"
63 }
64}
65
66// ParseMode maps a config/env string to a Mode. Unknown values fall back to
67// ModeLossyWithCCR (the recommended default) and report ok=false so callers

Callers 15

SaveContextMethod · 0.45
LoadAllContextsMethod · 0.45
DeleteContextMethod · 0.45
ExportContextMethod · 0.45
ImportContextMethod · 0.45
ingestKnowledgeJSONLFunction · 0.45
KnowledgeSearchMethod · 0.45
KnowledgeTOCMethod · 0.45
FormatKnowledgeHitsFunction · 0.45
BuildKnowledgeDigestFunction · 0.45
repeatLineFunction · 0.45

Calls

no outgoing calls