Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
Print SDK and API version information in the `version` command.
  • Loading branch information
Diwaker Gupta committed Aug 8, 2016
1 parent 582e2e1 commit acd2393
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 42 deletions.
6 changes: 5 additions & 1 deletion main.go
Expand Up @@ -19,6 +19,7 @@ import (
"log"

"github.com/dropbox/dbxcli/cmd"
"github.com/dropbox/dropbox-sdk-go-unofficial/dropbox"
"github.com/spf13/cobra"
)

Expand All @@ -29,7 +30,10 @@ var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version information",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version)
fmt.Println("dbxcli version:", version)
sdkVersion, specVersion := dropbox.Version()
fmt.Println("SDK version:", sdkVersion)
fmt.Println("Spec version:", specVersion)
},
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions vendor/github.com/grantseltzer/golumns/columns.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions vendor/github.com/spf13/cobra/bash_completions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions vendor/github.com/spf13/pflag/string_slice.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/golang.org/x/oauth2/oauth2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 40 additions & 36 deletions vendor/vendor.json
Expand Up @@ -3,64 +3,68 @@
"ignore": "appengine test",
"package": [
{
"checksumSHA1": "/VtWKyLBaqn7b3yWJi8X/TmpowA=",
"path": "context",
"revision": ""
},
{
"checksumSHA1": "5CGdAzLWkSUKONuoJR/f4It6aI8=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "c1PuHv5/cXN/hXhODMf7GyiGdOc=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "gkqoyxhExzsn7cdvhu7QGK121mk=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "5T6WkbCA/i4yc3ygXroJcBXYMyo=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "+kkeGOV9c8G2mJS0leUT3c+J/Gs=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/properties",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "N0VhGZnEkY5yszrHt60A4QJler0=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "AQNvnItlSukl9k1d899Q8sw1F/Q=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "+4Fata3MhGu0njgGM7NSbBcQ8ss=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_common",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "h5v5dCJJSQPhrn0EPiWYMRGSDlA=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "44Y9WoG9j+7D8npqq+XSet538XA=",
"path": "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users",
"revision": "13ed6f02d47dc93e1db59be7baf38e23f98115f6",
"revisionTime": "2016-07-29T17:17:04Z"
"revision": "475ca83180d005f7470ae0f8ab404486da0d78b3",
"revisionTime": "2016-08-08T20:33:51Z"
},
{
"checksumSHA1": "lUBE/ZMjzN5VJkT6lgQw3WI72lo=",
Expand Down Expand Up @@ -93,40 +97,40 @@
"revisionTime": "2015-05-21T21:15:56Z"
},
{
"checksumSHA1": "Xcw6bb1nAu+k4JKNyscU6nLQWjc=",
"checksumSHA1": "hvkXE4HQ2zgWaCkt3CQTki5hvqc=",
"path": "github.com/spf13/cobra",
"revision": "f62e98d28ab7ad31d707ba837a966378465c7b57",
"revisionTime": "2016-07-22T08:15:47Z"
"revision": "7c674d9e72017ed25f6d2b5e497a1368086b6a6f",
"revisionTime": "2016-08-02T22:37:37Z"
},
{
"checksumSHA1": "45OZzM/Hyc8mwjG2zn38n6bKZws=",
"checksumSHA1": "EBZXhJUT52KSJIOmcKG6rus7NtQ=",
"path": "github.com/spf13/pflag",
"revision": "1560c1005499d61b80f865c04d39ca7505bf7f0b",
"revisionTime": "2016-07-18T21:50:57Z"
"revision": "f676131e2660dc8cd88de99f7486d34aa8172635",
"revisionTime": "2016-08-04T14:13:50Z"
},
{
"checksumSHA1": "y3a1tOZVwKCqG2yJZvAYycnelyM=",
"path": "golang.org/x/crypto/ssh/terminal",
"revision": "bc89c496413265e715159bdc8478ee9a92fdc265",
"revisionTime": "2016-07-08T11:45:45Z"
"revision": "e0d166c33c321d0ff863f459a5882096e334f508",
"revisionTime": "2016-08-04T04:47:19Z"
},
{
"checksumSHA1": "9jjO5GjLa0XF/nfWihF02RoH4qc=",
"path": "golang.org/x/net/context",
"revision": "35028a49ca5a73b486af60cd20ac21cd6b67bfdb",
"revisionTime": "2016-07-31T22:09:09Z"
"revision": "075e191f18186a8ff2becaf64478e30f4545cdad",
"revisionTime": "2016-08-05T06:12:51Z"
},
{
"checksumSHA1": "DSW8n4bSrd8JdBINM/DFoRWK64w=",
"checksumSHA1": "4q+J7KldqFG28gkuEdHTyHgNcz4=",
"path": "golang.org/x/oauth2",
"revision": "1364adb2c63445016c5ed4518fc71f6a3cda6169",
"revisionTime": "2016-07-21T17:18:24Z"
"revision": "04e1573abc896e70388bd387a69753c378d46466",
"revisionTime": "2016-07-30T22:43:56Z"
},
{
"checksumSHA1": "D3v/aqfB9swlaZcSksCoF+lbOqo=",
"path": "golang.org/x/oauth2/internal",
"revision": "1364adb2c63445016c5ed4518fc71f6a3cda6169",
"revisionTime": "2016-07-21T17:18:24Z"
"revision": "04e1573abc896e70388bd387a69753c378d46466",
"revisionTime": "2016-07-30T22:43:56Z"
}
],
"rootPath": "github.com/dropbox/dbxcli"
Expand Down

0 comments on commit acd2393

Please sign in to comment.