mirror of
https://github.com/docker/compose.git
synced 2026-08-30 13:31:54 +00:00
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:
parent
da5c57c29d
commit
9b4fcce034
46 changed files with 152 additions and 136 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue