mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Fix json format for version command
Signed-off-by: Victor Timofei <victor@vtimothy.com>
This commit is contained in:
committed by
Nicolas De loof
parent
0ef4b90fae
commit
9054f6a18b
@@ -57,7 +57,7 @@ func runVersion(opts versionOptions) {
|
||||
return
|
||||
}
|
||||
if opts.format == formatter.JSON {
|
||||
fmt.Printf(`{"version":%q}\n`, internal.Version)
|
||||
fmt.Printf("{\"version\":%q}\n", internal.Version)
|
||||
return
|
||||
}
|
||||
fmt.Println("Docker Compose version", internal.Version)
|
||||
|
||||
Reference in New Issue
Block a user