ledo/app/cmd/docker/up.go

24 lines
499 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 CmdDockerUp = cli.Command{
Name: "up",
Aliases: []string{"u"},
Usage: "up containers",
Description: `Up all containers defined in docker-compose use in current mode`,
Action: RunComposeUp,
}
func RunComposeUp(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
compose.ExecComposerUp(ctx)
2021-10-23 20:16:42 +00:00
compose.ExecComposerLogs(ctx, cmd.Args())
2021-10-21 00:51:32 +00:00
return nil
}