aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-01-23 12:03:30 +0100
committerPetter Rasmussen2016-01-23 12:04:56 +0100
commitef9d5e6b127e055cac1fd733d49304dd28780ccd (patch)
tree89f8fceefa1f7d5e21f923ca2d6fb5f146bbed95 /gdrive.go
parent4e0cf6011e0da8bbaa9b9b63ea347e4dc59b9ca3 (diff)
downloadgdrive-ef9d5e6b127e055cac1fd733d49304dd28780ccd.tar.bz2
Implement list revisions
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 14a3fe9..78b168a 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -69,6 +69,34 @@ func main() {
},
},
&cli.Handler{
+ Pattern: "[global options] list revisions [options] <id>",
+ Description: "List file revisions",
+ Callback: listRevisionsHandler,
+ Flags: cli.Flags{
+ "global options": globalFlags,
+ "options": []cli.Flag{
+ cli.IntFlag{
+ Name: "nameWidth",
+ Patterns: []string{"--name-width"},
+ Description: fmt.Sprintf("Width of name column, default: %d, minimum: 9, use 0 for full width", DefaultNameWidth),
+ DefaultValue: DefaultNameWidth,
+ },
+ cli.BoolFlag{
+ Name: "skipHeader",
+ Patterns: []string{"--no-header"},
+ Description: "Dont print the header",
+ OmitValue: true,
+ },
+ cli.BoolFlag{
+ Name: "sizeInBytes",
+ Patterns: []string{"--bytes"},
+ Description: "Size in bytes",
+ OmitValue: true,
+ },
+ },
+ },
+ },
+ &cli.Handler{
Pattern: "[global options] download [options] <id>",
Description: "Download file or directory",
Callback: downloadHandler,