ledo/app/cmd/docker/uponce.go

22 lines
430 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 CmdComposeUpOnce = cli.Command{
Name: "uponce",
Usage: "up one container",
Description: `Up one container from docker compose stack`,
Action: RunComposeUpOnce,
}
func RunComposeUpOnce(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
compose.ExecComposerUpOnce(ctx)
return nil
}