Print OS and arch info for `--version`.

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

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

@ -145,6 +145,8 @@ func main() {
case *flagVersion:
// If requested, show version and quit.
fmt.Println("go-sendxmpp", version)
fmt.Println("OS:", runtime.GOOS)
fmt.Println("Arch:", runtime.GOARCH)
fmt.Println("License: BSD-2-clause")
os.Exit(0)
// Quit if Ox (OpenPGP for XMPP) is requested for unsupported operations like

Loading…
Cancel
Save