mirror of
https://github.com/docker/compose.git
synced 2026-08-31 23:03:55 +00:00
version command adding azure integration beta version in textual output
This commit is contained in:
parent
d9b4564533
commit
376a4b671c
5 changed files with 57 additions and 2 deletions
|
|
@ -57,3 +57,9 @@ func IsDefaultContextCommand(dockerCommand string) bool {
|
|||
contains := strings.Contains(output, "Usage:\tdocker "+dockerCommand)
|
||||
return contains
|
||||
}
|
||||
|
||||
// ExecSilent executes a command and do redirect output to stdOut, return output
|
||||
func ExecSilent(ctx context.Context) ([]byte, error) {
|
||||
cmd := exec.CommandContext(ctx, ClassicCliName, os.Args[1:]...)
|
||||
return cmd.CombinedOutput()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue