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

Function hasSubCommands

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

Source from the content-addressed store, hash-verified

220}
221
222func hasSubCommands(cmd *cobra.Command) bool {
223 return len(operationSubCommands(cmd)) > 0
224}
225
226func hasManagementSubCommands(cmd *cobra.Command) bool {
227 return len(managementSubCommands(cmd)) > 0

Callers

nothing calls this directly

Calls 1

operationSubCommandsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…