diff --git a/compose/api.go b/compose/api.go index 7d2d7244d..a9592d694 100644 --- a/compose/api.go +++ b/compose/api.go @@ -29,6 +29,8 @@ type Service interface { Up(ctx context.Context, opts cli.ProjectOptions) error // Down executes the equivalent to a `compose down` Down(ctx context.Context, opts cli.ProjectOptions) error - Logs(ctx context.Context, projectName cli.ProjectOptions) error - Ps(background context.Context, options cli.ProjectOptions) ([]types.ServiceStatus, error) + // Logs executes the equivalent to a `compose logs` + Logs(ctx context.Context, opts cli.ProjectOptions) error + // Ps executes the equivalent to a `compose ps` + Ps(ctx context.Context, opts cli.ProjectOptions) ([]types.ServiceStatus, error) } diff --git a/example/backend.go b/example/backend.go index 997894820..5c4d05e48 100644 --- a/example/backend.go +++ b/example/backend.go @@ -131,6 +131,7 @@ func (cs *composeService) Down(ctx context.Context, opts cli.ProjectOptions) err fmt.Printf("Down command on project %q", prj.Name) return nil } + func (cs *composeService) Ps(ctx context.Context, opts cli.ProjectOptions) ([]ecstypes.ServiceStatus, error) { return nil, errdefs.ErrNotImplemented }