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

Function printJSON

commands/util.go:633–643  ·  view source on GitHub ↗
(v interface{}, stream ...io.Writer)

Source from the content-addressed store, hash-verified

631}
632
633func printJSON(v interface{}, stream ...io.Writer) {
634 // Can't use prettyjson util issue https://github.com/hokaccha/go-prettyjson/issues/1 is fixed
635 //output, _ := prettyjson.Marshal(v)
636 //
637 //if len(stream) > 0 {
638 // fmt.Fprintf(stream[0], string(output))
639 //} else {
640 // fmt.Fprintf(color.Output, string(output))
641 //}
642 printJsonNoColor(v, stream...)
643}
644
645func printJsonNoColor(decoded interface{}, stream ...io.Writer) {
646 var output bytes.Buffer

Callers 9

activation.goFile · 0.85
api.goFile · 0.85
rule.goFile · 0.85
package.goFile · 0.85
trigger.goFile · 0.85
printFullActivationListFunction · 0.85
printFieldFunction · 0.85
printInvocationMsgFunction · 0.85
printActionGetFunction · 0.85

Calls 1

printJsonNoColorFunction · 0.85

Tested by

no test coverage detected