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

Function jsonHelpOperationResults

cmd/help_json.go:336–348  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

334}
335
336func jsonHelpOperationResults(cmd *cobra.Command) []jsonOperationResult {
337 commands := publicCommandSubtree(cmd)
338 results := make([]jsonOperationResult, 0, len(commands))
339 for _, command := range commands {
340 results = append(results, newJSONOperationResult(
341 jsonHelpStatusDescribed,
342 jsonHelpKindCommand,
343 nil,
344 jsonCommandManifestFor(command),
345 ))
346 }
347 return results
348}
349
350func publicCommandSubtree(cmd *cobra.Command) []*cobra.Command {
351 if cmd == nil {

Callers 1

renderJSONHelpFunction · 0.85

Calls 3

publicCommandSubtreeFunction · 0.85
newJSONOperationResultFunction · 0.85
jsonCommandManifestForFunction · 0.85

Tested by

no test coverage detected