diff --git a/src/v2.ts b/src/v2.ts index b65fe14e..22b254d9 100644 --- a/src/v2.ts +++ b/src/v2.ts @@ -305,12 +305,28 @@ export const upOne = function ( return execCompose('up', args, options) } -export const down = function ( +export const downAll = function ( options?: IDockerComposeOptions ): Promise { return execCompose('down', [], options) } +export const downMany = function ( + services: string[], + options?: IDockerComposeOptions +): Promise { + const args = services; + return execCompose('down', args, options); +} + +export const downOne = function ( + service: string, + options?: IDockerComposeOptions +): Promise { + const args = [service]; + return execCompose('down', args, options); +} + export const stop = function ( options?: IDockerComposeOptions ): Promise { @@ -566,7 +582,9 @@ export default { upAll, upMany, upOne, - down, + downAll, + downOne, + downMany, stop, stopOne, stopMany,