We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e817b12 commit da515ecCopy full SHA for da515ec
cmds/jsoncols/jsoncols.go
@@ -78,7 +78,6 @@ Would yield
78
generateMarkdownDocs bool
79
quiet bool
80
newLine bool
81
- eol string
82
83
// Application Specific Options
84
runInteractive bool
@@ -155,9 +154,6 @@ func main() {
155
154
fmt.Fprintln(app.Out, app.Version())
156
os.Exit(0)
157
}
158
- if newLine {
159
- eol = "\n"
160
- }
161
162
// Handle ordered args to get expressions for each column output.
163
for _, arg := range args {
@@ -244,5 +240,7 @@ func main() {
244
240
245
241
246
242
247
- fmt.Fprintf(app.Out, "%s", eol)
243
+ if newLine {
+ fmt.Fprintln(app.Out, "")
+ }
248
0 commit comments