Skip to content

Commit 1aaa179

Browse files
committed
cli/command/formatter: export JSONFormat const
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 5acb649 commit 1aaa179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/formatter/formatter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
JSONFormatKey = "json"
2020

2121
DefaultQuietFormat = "{{.ID}}"
22-
jsonFormat = "{{json .}}"
22+
JSONFormat = "{{json .}}"
2323
)
2424

2525
// Format is the format string rendered using the Context
@@ -62,7 +62,7 @@ func (c *Context) preFormat() {
6262
case c.Format.IsTable():
6363
c.finalFormat = c.finalFormat[len(TableFormatKey):]
6464
case c.Format.IsJSON():
65-
c.finalFormat = jsonFormat
65+
c.finalFormat = JSONFormat
6666
}
6767

6868
c.finalFormat = strings.Trim(c.finalFormat, " ")

0 commit comments

Comments
 (0)