mirror of
https://github.com/rclone/rclone.git
synced 2024-12-24 16:09:01 +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
|
// 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user