diff --git a/.gitignore b/.gitignore index 27bb586..7e804ad 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ dist main ledo .ledo-back.yml +.scannerwork diff --git a/app/cmd/container/up.go b/app/cmd/container/up.go index 7abec0e..ff57002 100644 --- a/app/cmd/container/up.go +++ b/app/cmd/container/up.go @@ -24,6 +24,12 @@ var CmdDockerUp = cli.Command{ Usage: "build local images before run", Required: false, }, + &cli.BoolFlag{ + Name: "logs", + Aliases: []string{"l"}, + Usage: "show logs after up", + Required: false, + }, }, } @@ -33,5 +39,8 @@ func RunComposeUp(cmd *cli.Context) error { compose.ExecComposerBuild(ctx, *cmd) } compose.ExecComposerUp(ctx, cmd.Bool("no-detach")) + if cmd.Bool("logs") { + compose.ExecComposerLogs(ctx, cmd.Args()) + } return nil }