MCPcopy Create free account
hub / github.com/4ier/notion-cli / JSON

Function JSON

internal/render/render.go:19–26  ·  view source on GitHub ↗

JSON outputs data as formatted JSON.

(data interface{})

Source from the content-addressed store, hash-verified

17
18// JSON outputs data as formatted JSON.
19func JSON(data interface{}) error {
20 out, err := json.MarshalIndent(data, "", " ")
21 if err != nil {
22 return err
23 }
24 fmt.Println(string(out))
25 return nil
26}
27
28// Title prints a styled title.
29func Title(icon, text string) {

Callers 9

page.goFile · 0.92
file.goFile · 0.92
comment.goFile · 0.92
page_markdown.goFile · 0.92
page_property.goFile · 0.92
search.goFile · 0.92
db.goFile · 0.92
block.goFile · 0.92
user.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected