aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/gdrive.go b/gdrive.go
index f89688b..ffcf30f 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -132,6 +132,39 @@ func main() {
},
},
&cli.Handler{
+ Pattern: "[global] download query [options] <query>",
+ Description: "Download all files and directories matching query",
+ Callback: downloadQueryHandler,
+ FlagGroups: cli.FlagGroups{
+ cli.NewFlagGroup("global", globalFlags...),
+ cli.NewFlagGroup("options",
+ cli.BoolFlag{
+ Name: "force",
+ Patterns: []string{"-f", "--force"},
+ Description: "Overwrite existing file",
+ OmitValue: true,
+ },
+ cli.BoolFlag{
+ Name: "recursive",
+ Patterns: []string{"-r", "--recursive"},
+ Description: "Download directories recursively, documents will be skipped",
+ OmitValue: true,
+ },
+ cli.StringFlag{
+ Name: "path",
+ Patterns: []string{"--path"},
+ Description: "Download path",
+ },
+ cli.BoolFlag{
+ Name: "noProgress",
+ Patterns: []string{"--no-progress"},
+ Description: "Hide progress",
+ OmitValue: true,
+ },
+ ),
+ },
+ },
+ &cli.Handler{
Pattern: "[global] upload [options] <path>",
Description: "Upload file or directory",
Callback: uploadHandler,