diff options
Diffstat (limited to 'handlers.go')
| -rw-r--r-- | handlers.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/handlers.go b/handlers.go index 3d90dc7..d74eb1a 100644 --- a/handlers.go +++ b/handlers.go @@ -82,6 +82,15 @@ func shareHandler(ctx cli.Context) { }) } +func urlHandler(ctx cli.Context) { + args := ctx.Args() + + newDrive(args).Url(drive.UrlArgs{ + FileId: args.String("id"), + DownloadUrl: args.Bool("download"), + }) +} + func deleteHandler(ctx cli.Context) { fmt.Println("Deleting...") } |
