MCPcopy
hub / github.com/larksuite/cli / prettyPrintMarkdownDiff

Function prettyPrintMarkdownDiff

shortcuts/markdown/markdown_diff.go:423–429  ·  view source on GitHub ↗
(w io.Writer, data map[string]interface{})

Source from the content-addressed store, hash-verified

421}
422
423func prettyPrintMarkdownDiff(w io.Writer, data map[string]interface{}) {
424 if !common.GetBool(data, "changed") {
425 io.WriteString(w, "No differences.\n")
426 return
427 }
428 io.WriteString(w, colorizeUnifiedDiff(common.GetString(data, "diff")))
429}
430
431var MarkdownDiff = common.Shortcut{
432 Service: "markdown",

Callers 1

markdown_diff.goFile · 0.85

Calls 3

GetBoolFunction · 0.92
GetStringFunction · 0.92
colorizeUnifiedDiffFunction · 0.85

Tested by

no test coverage detected