diff options
| author | Petter Rasmussen | 2016-02-15 21:55:42 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-02-15 21:55:42 +0100 | 
| commit | 3f8dc6312cc9b14897ff49439fb023e16e5f47d0 (patch) | |
| tree | b5b9b51b31de3d11a5ffbded62bfff9d8c6aa1b3 | |
| parent | 713b0624b9f9ac2370a898f669a922f80a7fe8ea (diff) | |
| download | gdrive-3f8dc6312cc9b14897ff49439fb023e16e5f47d0.tar.bz2 | |
s/id/fileId/
| -rw-r--r-- | gdrive.go | 20 | ||||
| -rw-r--r-- | handlers_drive.go | 20 | 
2 files changed, 20 insertions, 20 deletions
| @@ -77,7 +77,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] download [options] <id>", +            Pattern: "[global] download [options] <fileId>",              Description: "Download file or directory",              Callback: downloadHandler,              FlagGroups: cli.FlagGroups{ @@ -203,7 +203,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] update [options] <id> <path>", +            Pattern: "[global] update [options] <fileId> <path>",              Description: "Update file, this creates a new revision of the file",              Callback: updateHandler,              FlagGroups: cli.FlagGroups{ @@ -240,7 +240,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] info [options] <id>", +            Pattern: "[global] info [options] <fileId>",              Description: "Show file info",              Callback: infoHandler,              FlagGroups: cli.FlagGroups{ @@ -271,7 +271,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] share [options] <id>", +            Pattern: "[global] share [options] <fileId>",              Description: "Share file or directory",              Callback: shareHandler,              FlagGroups: cli.FlagGroups{ @@ -326,7 +326,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] delete [options] <id>", +            Pattern: "[global] delete [options] <fileId>",              Description: "Delete file or directory",              Callback: deleteHandler,              FlagGroups: cli.FlagGroups{ @@ -358,7 +358,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] sync list recursive [options] <id>", +            Pattern: "[global] sync list recursive [options] <fileId>",              Description: "List content of syncable directory",              Callback: listRecursiveSyncHandler,              FlagGroups: cli.FlagGroups{ @@ -391,7 +391,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] sync download [options] <id> <path>", +            Pattern: "[global] sync download [options] <fileId> <path>",              Description: "Sync drive directory to local directory",              Callback: downloadSyncHandler,              FlagGroups: cli.FlagGroups{ @@ -437,7 +437,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] sync upload [options] <path> <id>", +            Pattern: "[global] sync upload [options] <path> <fileId>",              Description: "Sync local directory to drive",              Callback: uploadSyncHandler,              FlagGroups: cli.FlagGroups{ @@ -529,7 +529,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] revision list [options] <id>", +            Pattern: "[global] revision list [options] <fileId>",              Description: "List file revisions",              Callback: listRevisionsHandler,              FlagGroups: cli.FlagGroups{ @@ -619,7 +619,7 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global] export [options] <id>", +            Pattern: "[global] export [options] <fileId>",              Description: "Export a google document",              Callback: exportHandler,              FlagGroups: cli.FlagGroups{ diff --git a/handlers_drive.go b/handlers_drive.go index de929a4..28d3095 100644 --- a/handlers_drive.go +++ b/handlers_drive.go @@ -48,7 +48,7 @@ func downloadHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).Download(drive.DownloadArgs{          Out: os.Stdout, -        Id: args.String("id"), +        Id: args.String("fileId"),          Force: args.Bool("force"),          Path: args.String("path"),          Recursive: args.Bool("recursive"), @@ -65,7 +65,7 @@ func downloadSyncHandler(ctx cli.Context) {          Out: os.Stdout,          Progress: progressWriter(args.Bool("noProgress")),          Path: args.String("path"), -        RootId: args.String("id"), +        RootId: args.String("fileId"),          DryRun: args.Bool("dryRun"),          DeleteExtraneous: args.Bool("deleteExtraneous"),          Resolution: conflictResolution(args), @@ -126,7 +126,7 @@ func uploadSyncHandler(ctx cli.Context) {          Out: os.Stdout,          Progress: progressWriter(args.Bool("noProgress")),          Path: args.String("path"), -        RootId: args.String("id"), +        RootId: args.String("fileId"),          DryRun: args.Bool("dryRun"),          DeleteExtraneous: args.Bool("deleteExtraneous"),          ChunkSize: args.Int64("chunksize"), @@ -140,7 +140,7 @@ func updateHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).Update(drive.UpdateArgs{          Out: os.Stdout, -        Id: args.String("id"), +        Id: args.String("fileId"),          Path: args.String("path"),          Name: args.String("name"),          Parents: args.StringSlice("parent"), @@ -155,7 +155,7 @@ func infoHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).Info(drive.FileInfoArgs{          Out: os.Stdout, -        Id: args.String("id"), +        Id: args.String("fileId"),          SizeInBytes: args.Bool("sizeInBytes"),      })      checkErr(err) @@ -176,7 +176,7 @@ func exportHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).Export(drive.ExportArgs{          Out: os.Stdout, -        Id: args.String("id"), +        Id: args.String("fileId"),          Mime: args.String("mime"),          PrintMimes: args.Bool("printMimes"),          Force: args.Bool("force"), @@ -188,7 +188,7 @@ func listRevisionsHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).ListRevisions(drive.ListRevisionsArgs{          Out: os.Stdout, -        Id: args.String("id"), +        Id: args.String("fileId"),          NameWidth: args.Int64("nameWidth"),          SizeInBytes: args.Bool("sizeInBytes"),          SkipHeader: args.Bool("skipHeader"), @@ -210,7 +210,7 @@ func shareHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).Share(drive.ShareArgs{          Out: os.Stdout, -        FileId: args.String("id"), +        FileId: args.String("fileId"),          Role: args.String("role"),          Type: args.String("type"),          Email: args.String("email"), @@ -242,7 +242,7 @@ func deleteHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).Delete(drive.DeleteArgs{          Out: os.Stdout, -        Id: args.String("id"), +        Id: args.String("fileId"),          Recursive: args.Bool("recursive"),      })      checkErr(err) @@ -261,7 +261,7 @@ func listRecursiveSyncHandler(ctx cli.Context) {      args := ctx.Args()      err := newDrive(args).ListRecursiveSync(drive.ListRecursiveSyncArgs{          Out: os.Stdout, -        RootId: args.String("id"), +        RootId: args.String("fileId"),          SkipHeader: args.Bool("skipHeader"),          PathWidth: args.Int64("pathWidth"),          SizeInBytes: args.Bool("sizeInBytes"), | 
