More verbose version output.

This commit is contained in:
Martin Dosch 2024-08-20 20:33:38 +02:00
parent 28180fa019
commit 71bb283898
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,8 @@
# Changelog
## UNRELEASED
### Changed
- Ad Gopenpgp and Xmppsrv version to `--version` output (requires xmppsrv >= 0.3.2).
## [v0.11.1] 2024-07-11
### Changed

10
main.go
View File

@ -19,9 +19,11 @@ import (
"strings"
"time"
"github.com/ProtonMail/gopenpgp/v2/crypto" // MIT License
"github.com/pborman/getopt/v2" // BSD-3-Clause
"github.com/xmppo/go-xmpp" // BSD-3-Clause
gopenpgpConst "github.com/ProtonMail/gopenpgp/v2/constants" // MIT License
"github.com/ProtonMail/gopenpgp/v2/crypto" // MIT License
"github.com/pborman/getopt/v2" // BSD-3-Clause
"github.com/xmppo/go-xmpp" // BSD-3-Clause
"salsa.debian.org/mdosch/xmppsrv" // BSD-2-Clause
)
type configuration struct {
@ -149,6 +151,8 @@ func main() {
case *flagVersion:
// If requested, show version and quit.
fmt.Println("Go-sendxmpp", version)
fmt.Println("Xmppsrv library version:", xmppsrv.Version)
fmt.Println("Gopenpgp library version:", gopenpgpConst.Version)
system := runtime.GOOS + "/" + runtime.GOARCH
fmt.Println("System:", system, runtime.Version())
fmt.Println("License: BSD-2-clause")