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

Function newJSONOperationOutput

cmd/json_output.go:67–75  ·  view source on GitHub ↗
(input any, results []jsonOperationResult, warnings []jsonWarning)

Source from the content-addressed store, hash-verified

65}
66
67func newJSONOperationOutput(input any, results []jsonOperationResult, warnings []jsonWarning) jsonOperationOutput {
68 return jsonOperationOutput{
69 OK: true,
70 SchemaVersion: jsonSchemaVersion,
71 Input: normalizeJSONInput(input),
72 Results: normalizeJSONOperationResults(results),
73 Warnings: normalizeJSONWarnings(warnings),
74 }
75}
76
77func newJSONCommandOperationOutput(cmd *cobra.Command, input any, results []jsonOperationResult, warnings []jsonWarning) jsonOperationOutput {
78 return withJSONCommand(cmd, newJSONOperationOutput(input, results, warnings))

Calls 3

normalizeJSONInputFunction · 0.85
normalizeJSONWarningsFunction · 0.85