Print go version for flag `--version`.

v0.9
Martin Dosch 3 months ago
parent 6a5bdec0e7
commit 42e2c83eaf
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -3,7 +3,7 @@
## UNRELEASED
### Changed
- Properly close stream if `Ctrl+C` is pressed in interactive mode.
- Print OS and architecture for flag `--version`.
- Print OS, architecture and go version for flag `--version`.
## [v0.8.4] 2024-03-09
### Changed

@ -145,6 +145,7 @@ func main() {
case *flagVersion:
// If requested, show version and quit.
fmt.Println("go-sendxmpp", version)
fmt.Println("Go:", runtime.Version())
fmt.Println("OS:", runtime.GOOS)
fmt.Println("Arch:", runtime.GOARCH)
fmt.Println("License: BSD-2-clause")

Loading…
Cancel
Save