Skip to content

rm and stopMany methods have an inconsistent API #223

Description

@johnytiago

The signatures of the rm and stopMany methods is inconsistent with other methods that accept multiple services.
For all the other methods that accept multiple services the signature is services first, options second:

 (services: string[], options?: IDockerComposeOptions | undefined) => Promise<IDockerComposeResult>;

Yet, for rm and stopMany the signature is different:

(options?: IDockerComposeOptions | undefined, ...services: string[]) => Promise<IDockerComposeResult>

I know that changing this signature is likely to result in a breaking change, but would you be willing to accept a PR to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions