21 lines
443 B
Go
21 lines
443 B
Go
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
|
|
}
|