Skip to content

Commit bd05d60

Browse files
committed
add service name compeltion to down command
1 parent 81ba889 commit bd05d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compose/down.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func downCommand(p *ProjectOptions, dockerCli command.Cli, backendOptions *Backe
6060
RunE: Adapt(func(ctx context.Context, args []string) error {
6161
return runDown(ctx, dockerCli, backendOptions, opts, args)
6262
}),
63-
ValidArgsFunction: noCompletion(),
63+
ValidArgsFunction: completeServiceNames(dockerCli, p),
6464
}
6565
flags := downCmd.Flags()
6666
removeOrphans := utils.StringToBool(os.Getenv(ComposeRemoveOrphans))

0 commit comments

Comments
 (0)