introduce WithPrompt to configure compose backend to use a plugable UI component for user interaction

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-10-22 14:26:46 +02:00 committed by Nicolas De loof
parent da5c57c29d
commit 9b4fcce034
46 changed files with 152 additions and 136 deletions

View file

@ -30,8 +30,9 @@ import (
"github.com/docker/docker/api/types/volume"
)
// Service manages a compose project
type Service interface {
// Compose is the API interface one can use to programmatically use docker/compose in a third-party software
// Use [compose.NewComposeService] to get an actual instance
type Compose interface {
// Build executes the equivalent to a `compose build`
Build(ctx context.Context, project *types.Project, options BuildOptions) error
// Push executes the equivalent to a `compose push`