MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / buildSetupBlock

Function buildSetupBlock

cmd/setup/setup_cmd.go:91–101  ·  view source on GitHub ↗
(withTrailingNewline bool)

Source from the content-addressed store, hash-verified

89}
90
91func buildSetupBlock(withTrailingNewline bool) string {
92 block := strings.TrimSpace(setupTemplate)
93 if block == "" {
94 return ""
95 }
96 assembled := block
97 if withTrailingNewline {
98 return assembled + "\n"
99 }
100 return assembled
101}
102
103func appendSetupBlock(existing string) string {
104 trimmed := strings.TrimRight(existing, "\n")

Callers 2

writeAgentsFileFunction · 0.85
appendSetupBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected