ledo/app/cmd/docker/shell.go

22 lines
427 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 CmdComposeShell = cli.Command{
Name: "shell",
Usage: "run shell from main service",
Description: `Execute shell cmd in main service`,
Action: RunComposeShell,
}
func RunComposeShell(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
compose.ExecComposerShell(ctx)
return nil
}