(out io.Writer, info versionOutput)
| 59 | } |
| 60 | |
| 61 | func renderVersion(out io.Writer, info versionOutput) error { |
| 62 | fmt.Fprintln(out, "dbxcli version:", info.Version) |
| 63 | fmt.Fprintln(out, "SDK version:", info.SDKVersion) |
| 64 | fmt.Fprintln(out, "Spec version:", info.SpecVersion) |
| 65 | return nil |
| 66 | } |
| 67 | |
| 68 | func newVersionOutput(version string) versionOutput { |
| 69 | sdkVersion, specVersion := dropboxVersionFunc() |