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

Function setCommandAnnotationList

cmd/help_json.go:488–493  ·  view source on GitHub ↗
(cmd *cobra.Command, key string, values []string)

Source from the content-addressed store, hash-verified

486}
487
488func setCommandAnnotationList(cmd *cobra.Command, key string, values []string) {
489 if cmd.Annotations == nil {
490 cmd.Annotations = make(map[string]string)
491 }
492 cmd.Annotations[key] = strings.Join(values, ",")
493}
494
495func commandManifestAuthModes(cmd *cobra.Command) []string {
496 if modes := commandAnnotationList(cmd, commandAuthModesAnnotation); modes != nil {

Callers 2

setCommandAuthModesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected