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

Function sortedAliases

tools/gen-docs/main.go:240–247  ·  view source on GitHub ↗
(command *cobra.Command)

Source from the content-addressed store, hash-verified

238}
239
240func sortedAliases(command *cobra.Command) []string {
241 if command == nil || len(command.Aliases) == 0 {
242 return nil
243 }
244 aliases := append([]string{}, command.Aliases...)
245 sort.Strings(aliases)
246 return aliases
247}
248
249func relativeCommandPath(command *cobra.Command) string {
250 if command == nil {

Callers 1

commandMetadataSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected