ledo/app/cmd/docker/start.go

21 lines
443 B
Go
Raw Normal View History

2021-10-21 00:51:32 +00:00
package docker
import (
"github.com/urfave/cli/v2"
"ledo/app/modules/compose"
"ledo/app/modules/context"
)
var CmdComposeStart = cli.Command{
Name: "start",
Usage: "start containers",
Description: `Start all containers defined in docker-compose stack run mode`,
Action: RunComposeStart,
}
func RunComposeStart(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
compose.ExecComposerStart(ctx)
return nil
}