mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Add streamOverrideWrapper to intercepts command.Cli stream methods and transparently returns custom streams when provided via options
Add new GetConfiguredStreams function to Compose API definition Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
e1678c5c43
commit
86e91e010d
7 changed files with 72 additions and 19 deletions
|
|
@ -99,6 +99,9 @@ type Compose interface {
|
|||
Generate(ctx context.Context, options GenerateOptions) (*types.Project, error)
|
||||
// Volumes executes the equivalent to a `docker volume ls`
|
||||
Volumes(ctx context.Context, project string, options VolumesOptions) ([]VolumesSummary, error)
|
||||
// GetConfiguredStreams returns the configured I/O streams (stdout, stderr, stdin).
|
||||
// If no custom streams were configured, it returns the dockerCli streams.
|
||||
GetConfiguredStreams() (stdout io.Writer, stderr io.Writer, stdin io.Reader)
|
||||
}
|
||||
|
||||
type VolumesOptions struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue