Skip to content

Commit

Permalink
s/id/fileId/
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Feb 15, 2016
1 parent 713b062 commit 3f8dc63
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions gdrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down
20 changes: 10 additions & 10 deletions handlers_drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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),
Expand Down Expand Up @@ -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"),
Expand All @@ -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"),
Expand All @@ -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)
Expand All @@ -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"),
Expand All @@ -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"),
Expand All @@ -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"),
Expand Down Expand Up @@ -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)
Expand All @@ -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"),
Expand Down

0 comments on commit 3f8dc63

Please sign in to comment.