mirror of
https://github.com/docker/compose.git
synced 2026-08-28 04:18:05 +00:00
Return exit code 1 if engine error on version query
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
fef479ad1f
commit
29cc59cf42
3 changed files with 26 additions and 18 deletions
|
|
@ -43,7 +43,7 @@ func WithCliOptions(ctx gocontext.Context, options cliflags.CommonOptions) conte
|
|||
return context.WithValue(ctx, cliOptionsKey{}, options)
|
||||
}
|
||||
|
||||
// CliOptions returns the current context name
|
||||
// CliOptions returns common cli options
|
||||
func CliOptions(ctx context.Context) cliflags.CommonOptions {
|
||||
cc, _ := ctx.Value(cliOptionsKey{}).(cliflags.CommonOptions)
|
||||
return cc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue