MCPcopy Create free account
hub / github.com/docker/cli / hasAliases

Function hasAliases

cli/cobra.go:218–220  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

216}
217
218func hasAliases(cmd *cobra.Command) bool {
219 return len(cmd.Aliases) > 0 || cmd.Annotations["aliases"] != ""
220}
221
222func hasSubCommands(cmd *cobra.Command) bool {
223 return len(operationSubCommands(cmd)) > 0

Callers 1

TestCommandAliasesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCommandAliasesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…