From 4b1c4bdaec587f00b651c9ebed1c115bbd500e88 Mon Sep 17 00:00:00 2001 From: neilotoole Date: Sun, 20 Aug 2023 08:50:24 -0600 Subject: [PATCH] cmd version: was missing newline in output --- CHANGELOG.md | 7 +++++++ cli/output/tablew/versionwriter.go | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea3f40fb..6b0021b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Breaking changes are annotated with ☢️. +## [v0.41.1] - 2023-08-20 + +### Fixed + +- `sq version` was missing a newline in its output. + ## [v0.41.0] - 2023-08-20 This release is heavily focused on improvements to Microsoft Excel support. @@ -821,3 +827,4 @@ make working with lots of sources much easier. [v0.39.1]: https://github.com/neilotoole/sq/compare/v0.39.0...v0.39.1 [v0.40.0]: https://github.com/neilotoole/sq/compare/v0.39.1...v0.40.0 [v0.41.0]: https://github.com/neilotoole/sq/compare/v0.40.0...v0.41.0 +[v0.41.1]: https://github.com/neilotoole/sq/compare/v0.41.0...v0.41.1 diff --git a/cli/output/tablew/versionwriter.go b/cli/output/tablew/versionwriter.go index c0940509..515fb8fd 100644 --- a/cli/output/tablew/versionwriter.go +++ b/cli/output/tablew/versionwriter.go @@ -38,8 +38,10 @@ func (w *versionWriter) Version(bi buildinfo.BuildInfo, latestVersion string, hi if newerAvailable { fmt.Fprint(w.out, " ") - w.pr.Faint.Fprintln(w.out, "Update available: "+latestVersion) + w.pr.Faint.Fprint(w.out, "Update available: "+latestVersion) } + + fmt.Fprintln(w.out) return nil }