MCPcopy Create free account
hub / github.com/driangle/taskmd / printDescription

Function printDescription

apps/cli/internal/cli/get.go:471–481  ·  view source on GitHub ↗
(w io.Writer, body string, r *lipgloss.Renderer, raw bool)

Source from the content-addressed store, hash-verified

469}
470
471func printDescription(w io.Writer, body string, r *lipgloss.Renderer, raw bool) {
472 if body == "" {
473 return
474 }
475 separator := strings.Repeat("\u2500", 49)
476 content := strings.TrimSpace(body)
477 if !raw {
478 content = markdown.Render(content, r)
479 }
480 fmt.Fprintf(w, "\nDescription:\n%s\n%s\n%s\n", separator, content, separator)
481}
482
483func printDependencies(w io.Writer, deps dependencyInfo, r *lipgloss.Renderer) {
484 if len(deps.DependsOn) == 0 && len(deps.Blocks) == 0 {

Callers 1

outputGetTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected