aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdrive.go b/gdrive.go
index f20f9f3..967f6ec 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -125,6 +125,34 @@ func main() {
},
},
&cli.Handler{
+ Pattern: "[global options] download revision [options] <fileId> <revisionId>",
+ Description: "Download revision",
+ Callback: downloadRevisionHandler,
+ Flags: cli.Flags{
+ "global options": globalFlags,
+ "options": []cli.Flag{
+ cli.BoolFlag{
+ Name: "force",
+ Patterns: []string{"-f", "--force"},
+ Description: "Overwrite existing file",
+ OmitValue: true,
+ },
+ cli.BoolFlag{
+ Name: "noProgress",
+ Patterns: []string{"--no-progress"},
+ Description: "Hide progress",
+ OmitValue: true,
+ },
+ cli.BoolFlag{
+ Name: "stdout",
+ Patterns: []string{"--stdout"},
+ Description: "Write file content to stdout",
+ OmitValue: true,
+ },
+ },
+ },
+ },
+ &cli.Handler{
Pattern: "[global options] upload [options] <path>",
Description: "Upload file or directory",
Callback: uploadHandler,