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