diff options
Diffstat (limited to 'handlers.go')
| -rw-r--r-- | handlers.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/handlers.go b/handlers.go index 426f089..f681a2d 100644 --- a/handlers.go +++ b/handlers.go @@ -47,6 +47,16 @@ func uploadHandler(ctx cli.Context) { }) } +func infoHandler(ctx cli.Context) { + args := ctx.Args() + gdrive := newDrive() + + gdrive.Info(drive.FileInfoArgs{ + Id: args.String("id"), + SizeInBytes: args.Bool("sizeInBytes"), + }) +} + func deleteHandler(ctx cli.Context) { fmt.Println("Deleting...") } |
