MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / printJSON

Function printJSON

cmd/json.go:8–12  ·  view source on GitHub ↗
(data any)

Source from the content-addressed store, hash-verified

6)
7
8func printJSON(data any) {
9 enc := json.NewEncoder(os.Stdout)
10 enc.SetIndent("", " ")
11 _ = enc.Encode(data) //nolint:errcheck // stdout write failure is non-recoverable
12}

Callers 12

runPortsForwardFunction · 0.85
printJSONHelpFunction · 0.85
RunStatusFunction · 0.85
runPortsListFunction · 0.85
runSnapshotListFunction · 0.85
runDeleteFunction · 0.85
runConnectWithOptionsFunction · 0.85
PrintErrorFunction · 0.85
runModifyFunction · 0.85
runCreateFunction · 0.85
runSnapshotCreateFunction · 0.85
runSnapshotDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected