MCPcopy Create free account
hub / github.com/dropbox/dbxcli / withJSONCommand

Function withJSONCommand

cmd/json_output.go:81–86  ·  view source on GitHub ↗
(cmd *cobra.Command, out jsonOperationOutput)

Source from the content-addressed store, hash-verified

79}
80
81func withJSONCommand(cmd *cobra.Command, out jsonOperationOutput) jsonOperationOutput {
82 out.OK = true
83 out.SchemaVersion = jsonSchemaVersion
84 out.Command = jsonCommandPath(cmd)
85 return out
86}
87
88func renderJSONOperationOutput(cmd *cobra.Command, input any, results []jsonOperationResult) error {
89 return renderJSONOperationOutputWithWarnings(cmd, input, results, nil)

Callers 7

accountFunction · 0.85
addMemberFunction · 0.85
infoFunction · 0.85
removeMemberFunction · 0.85
duFunction · 0.85
versionCommandFunction · 0.85

Calls 1

jsonCommandPathFunction · 0.85

Tested by

no test coverage detected