mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 12:57:17 +00:00
version output
- make version output more verbose - include NetworkId - go version and os not displayed like env vars (confusing)
This commit is contained in:
parent
51eed7964e
commit
41a89e18f6
@ -228,11 +228,13 @@ func hashish(x string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func version(c *cli.Context) {
|
func version(c *cli.Context) {
|
||||||
fmt.Printf(`%v %v
|
fmt.Printf(`%v
|
||||||
PV=%d
|
Version: %v
|
||||||
GOOS=%s
|
Protocol Version: %d
|
||||||
GO=%s
|
Network Id: %d
|
||||||
|
GO: %s
|
||||||
|
OS: %s
|
||||||
GOPATH=%s
|
GOPATH=%s
|
||||||
GOROOT=%s
|
GOROOT=%s
|
||||||
`, ClientIdentifier, Version, eth.ProtocolVersion, runtime.GOOS, runtime.Version(), os.Getenv("GOPATH"), runtime.GOROOT())
|
`, ClientIdentifier, Version, eth.ProtocolVersion, eth.NetworkId, runtime.Version(), runtime.GOOS, os.Getenv("GOPATH"), runtime.GOROOT())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user