MCPcopy Create free account
hub / github.com/vale-cli/vale / printJSON

Function printJSON

cmd/vale/util.go:50–58  ·  view source on GitHub ↗
(t interface{})

Source from the content-addressed store, hash-verified

48}
49
50func printJSON(t interface{}) error {
51 b, err := json.MarshalIndent(t, "", " ")
52 if err != nil {
53 fmt.Println("{}")
54 return err
55 }
56 fmt.Println(string(b))
57 return nil
58}
59
60// Send a JSON response after a local action.
61func sendResponse(msg string, err error) error {

Callers 9

sendResponseFunction · 0.85
fixFunction · 0.85
printMetricsFunction · 0.85
runTagFunction · 0.85
compileRuleFunction · 0.85
printVarsFunction · 0.85
printDirsFunction · 0.85
pathInfoFunction · 0.85
loadConfigsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…