Skip to content

Commit a20a6fe

Browse files
edwardrfedw-defang
andauthored
Exit with 0 when command is terminated due to --dry-run (#628)
Co-authored-by: Edward J <[email protected]>
1 parent cde7430 commit a20a6fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/cli/command/commands.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ func Execute(ctx context.Context) error {
6767
term.Error("Error:", prettyError(err))
6868
}
6969

70+
if err == cli.ErrDryRun {
71+
return nil
72+
}
73+
7074
var derr *cli.ComposeError
7175
if errors.As(err, &derr) {
7276
compose := "compose"

0 commit comments

Comments
 (0)