cmd: add os and go version to rclone version output

This commit is contained in:
Nick Craig-Wood 2017-08-04 14:25:20 +01:00
parent 28a18303f3
commit 7d34caac83

View File

@ -99,6 +99,8 @@ func init() {
// ShowVersion prints the version to stdout // ShowVersion prints the version to stdout
func ShowVersion() { func ShowVersion() {
fmt.Printf("rclone %s\n", fs.Version) fmt.Printf("rclone %s\n", fs.Version)
fmt.Printf("- os/arch: %s/%s\n", runtime.GOOS, runtime.GOARCH)
fmt.Printf("- go version: %s\n", runtime.Version())
} }
// newFsFile creates a dst Fs from a name but may point to a file. // newFsFile creates a dst Fs from a name but may point to a file.