mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
cmd: add os and go version to rclone version output
This commit is contained in:
parent
28a18303f3
commit
7d34caac83
@ -99,6 +99,8 @@ func init() {
|
||||
// ShowVersion prints the version to stdout
|
||||
func ShowVersion() {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user