mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-16 12:44:32 +00:00
15 lines
388 B
Go
15 lines
388 B
Go
package action
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker/compose"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func ActionContainers(cmd *cobra.Command, opts compose.ContainerOpts) carapace.Action {
|
|
return carapace.ActionCallback(func(c carapace.Context) carapace.Action {
|
|
opts.Files = files(cmd)
|
|
return compose.ActionContainers(opts)
|
|
})
|
|
}
|