diff options
| author | Petter Rasmussen | 2016-01-23 12:03:30 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-01-23 12:04:56 +0100 | 
| commit | ef9d5e6b127e055cac1fd733d49304dd28780ccd (patch) | |
| tree | 89f8fceefa1f7d5e21f923ca2d6fb5f146bbed95 /gdrive.go | |
| parent | 4e0cf6011e0da8bbaa9b9b63ea347e4dc59b9ca3 (diff) | |
| download | gdrive-ef9d5e6b127e055cac1fd733d49304dd28780ccd.tar.bz2 | |
Implement list revisions
Diffstat (limited to 'gdrive.go')
| -rw-r--r-- | gdrive.go | 28 | 
1 files changed, 28 insertions, 0 deletions
| @@ -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, | 
