MCPcopy
hub / github.com/docker/compose / Adapt

Function Adapt

cmd/compose/compose.go:134–138  ·  cmd/compose/compose.go::Adapt

Adapt a Command func to cobra library

(fn Command)

Source from the content-addressed store, hash-verified

132
133// Adapt a Command func to cobra library
134func Adapt(fn Command) func(cmd *cobra.Command, args []string) error {
135 return AdaptCmd(func(ctx context.Context, cmd *cobra.Command, args []string) error {
136 return fn(ctx, args)
137 })
138}
139
140type ProjectOptions struct {
141 ProjectName string

Callers 15

logsCommandFunction · 0.85
copyCommandFunction · 0.85
pushCommandFunction · 0.85
stopCommandFunction · 0.85
convertCommandFunction · 0.85
listTransformersCommandFunction · 0.85
createTransformerCommandFunction · 0.85
exportCommandFunction · 0.85
topCommandFunction · 0.85
startCommandFunction · 0.85
attachCommandFunction · 0.85
restartCommandFunction · 0.85

Calls 1

AdaptCmdFunction · 0.85

Tested by

no test coverage detected