MCPcopy Create free account
hub / github.com/Tencent/WeKnora / WantsJSON

Method WantsJSON

cli/internal/cmdutil/format.go:94–96  ·  view source on GitHub ↗

WantsJSON reports whether the resolved mode is JSON or NDJSON. Used by callers to choose between the JSON emit path and text rendering.

()

Source from the content-addressed store, hash-verified

92// WantsJSON reports whether the resolved mode is JSON or NDJSON. Used by
93// callers to choose between the JSON emit path and text rendering.
94func (o *FormatOptions) WantsJSON() bool {
95 return o.Mode == FormatJSON || o.Mode == FormatNDJSON
96}
97
98// Emit serializes data wrapped in the success envelope (FormatJSON
99// path) or as bare NDJSON lines (FormatNDJSON path). meta is optional

Callers 15

EmitBatchFunction · 0.80
newVersionCmdFunction · 0.80
runUnlinkFunction · 0.80
runLinkFunction · 0.80
runPinFunction · 0.80
runDeleteFunction · 0.80
NewCmdEditFunction · 0.80
runEditFunction · 0.80

Calls

no outgoing calls