mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-17 03:25:33 +00:00
More verbose version output.
This commit is contained in:
parent
28180fa019
commit
71bb283898
@ -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
10
main.go
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user