ledo/app/cmd/docker/logs.go

22 lines
481 B
Go
Raw Permalink 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 CmdComposeLogs = cli.Command{
Name: "logs",
2021-11-28 00:04:20 +00:00
Aliases: []string{"l"},
2021-10-21 00:51:32 +00:00
Usage: "logs from containers",
Description: `Get fqn docker image defined as main service in config file`,
Action: RunComposeLogs,
}
func RunComposeLogs(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
2021-10-23 20:16:42 +00:00
compose.ExecComposerLogs(ctx, cmd.Args())
2021-10-21 00:51:32 +00:00
return nil
}