mirror of
https://github.com/restic/restic.git
synced 2024-12-25 17:27:25 +00:00
Merge pull request #1679 from rawtaz/version-oneliner
Make version output one line.
This commit is contained in:
commit
26769a39eb
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ and the version of this software.
|
||||||
`,
|
`,
|
||||||
DisableAutoGenTag: true,
|
DisableAutoGenTag: true,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Printf("restic %s\ncompiled with %v on %v/%v\n",
|
fmt.Printf("restic %s compiled with %v on %v/%v\n",
|
||||||
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ func init() {
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
debug.Log("main %#v", os.Args)
|
debug.Log("main %#v", os.Args)
|
||||||
debug.Log("restic %s, compiled with %v on %v/%v",
|
debug.Log("restic %s compiled with %v on %v/%v",
|
||||||
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||||
err := cmdRoot.Execute()
|
err := cmdRoot.Execute()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue