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

Function commandHasTopLevelName

cmd/help_json.go:547–553  ·  view source on GitHub ↗
(cmd *cobra.Command, name string)

Source from the content-addressed store, hash-verified

545}
546
547func commandHasTopLevelName(cmd *cobra.Command, name string) bool {
548 var topLevel *cobra.Command
549 for c := cmd; c != nil && c.Parent() != nil; c = c.Parent() {
550 topLevel = c
551 }
552 return topLevel != nil && topLevel.Name() == name
553}
554
555func sortedCopyStringSlice(values []string) []string {
556 if values == nil {

Callers 2

commandManifestAuthModesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected