MCPcopy Create free account
hub / github.com/docker/compose / CobraCommand

FuncType CobraCommand

cmd/compose/compose.go:104–104  ·  view source on GitHub ↗

CobraCommand defines a cobra command function

func(context.Context, *cobra.Command, []string) error

Source from the content-addressed store, hash-verified

102
103// CobraCommand defines a cobra command function
104type CobraCommand func(context.Context, *cobra.Command, []string) error
105
106// AdaptCmd adapt a CobraCommand func to cobra library
107func AdaptCmd(fn CobraCommand) func(cmd *cobra.Command, args []string) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected