MCPcopy Index your code
hub / github.com/docker/cli / hasTopCommands

Function hasTopCommands

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

Source from the content-addressed store, hash-verified

236}
237
238func hasTopCommands(cmd *cobra.Command) bool {
239 return len(topCommands(cmd)) > 0
240}
241
242// commandAliases is a templating function to return aliases for the command,
243// formatted as the full command as they're called (contrary to the default

Callers

nothing calls this directly

Calls 1

topCommandsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…