Fix json format for version command

Signed-off-by: Victor Timofei <victor@vtimothy.com>
This commit is contained in:
Victor Timofei 2022-03-07 23:19:32 +02:00 committed by Nicolas De loof
parent 0ef4b90fae
commit 9054f6a18b
1 changed files with 1 additions and 1 deletions

View File

@ -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)