Add OS and Arch to 'version' output

This commit is contained in:
Alexander Neumann 2016-09-04 15:46:50 +02:00
parent 1dd9a58e5a
commit e443454c4b
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ func init() {
}
func (cmd CmdVersion) Execute(args []string) error {
fmt.Printf("restic %s\ncompiled at %s with %v\n",
version, compiledAt, runtime.Version())
fmt.Printf("restic %s\ncompiled at %s with %v on %v/%v\n",
version, compiledAt, runtime.Version(), runtime.GOOS, runtime.GOARCH)
return nil
}