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

Function CommandManifestFor

cmd/help_json.go:471–473  ·  view source on GitHub ↗

CommandManifestFor returns the JSON help manifest for a command.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

469
470// CommandManifestFor returns the JSON help manifest for a command.
471func CommandManifestFor(cmd *cobra.Command) jsonCommandManifest {
472 return jsonCommandManifestFor(cmd)
473}
474
475func setCommandAuthModes(cmd *cobra.Command, modes ...string) {
476 setCommandAnnotationList(cmd, commandAuthModesAnnotation, modes)

Callers 1

commandMetadataSectionFunction · 0.92

Calls 1

jsonCommandManifestForFunction · 0.85

Tested by

no test coverage detected