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

Function commandAnnotationList

cmd/help_json.go:515–536  ·  view source on GitHub ↗
(cmd *cobra.Command, key string)

Source from the content-addressed store, hash-verified

513}
514
515func commandAnnotationList(cmd *cobra.Command, key string) []string {
516 if cmd == nil || cmd.Annotations == nil {
517 return nil
518 }
519 value, ok := cmd.Annotations[key]
520 if !ok {
521 return nil
522 }
523 if value == "" {
524 return []string{}
525 }
526 parts := strings.Split(value, ",")
527 result := make([]string, 0, len(parts))
528 for _, part := range parts {
529 part = strings.TrimSpace(part)
530 if part != "" {
531 result = append(result, part)
532 }
533 }
534 sort.Strings(result)
535 return result
536}
537
538func isNoAuthCommand(cmd *cobra.Command) bool {
539 switch cmd.Name() {

Callers 2

commandManifestAuthModesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected