aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2017-02-01 23:59:09 +0100
committerGitHub2017-02-01 23:59:09 +0100
commit9a97a02661da67824828193fd90d6eb4bda67811 (patch)
treeaec26d4e9e10bb0abcb405c84facf8217af68fc7 /gdrive.go
parent0e05cfb6f84a714f9bdafade6d3cddbb8c8273e9 (diff)
parentb33b3e96eb6443ae3dff61e0e7b38bb529e328ea (diff)
downloadgdrive-9a97a02661da67824828193fd90d6eb4bda67811.tar.bz2
Merge pull request #252 from fab-io/master
New feature, support authentication via service account.
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdrive.go b/gdrive.go
index 971dc4c..c1a817e 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -40,6 +40,11 @@ func main() {
Patterns: []string{"--access-token"},
Description: "Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users)",
},
+ cli.StringFlag{
+ Name: "serviceAccount",
+ Patterns: []string{"--service-account"},
+ Description: "Oauth service account filename, used for server to server communication without user interaction (filename path is relative to config dir)",
+ },
}
handlers := []*cli.Handler{