aboutsummaryrefslogtreecommitdiffstats
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/handlers.go b/handlers.go
index 64e4fcd..3d90dc7 100644
--- a/handlers.go
+++ b/handlers.go
@@ -69,6 +69,19 @@ func mkdirHandler(ctx cli.Context) {
})
}
+func shareHandler(ctx cli.Context) {
+ args := ctx.Args()
+
+ newDrive(args).Share(drive.ShareArgs{
+ FileId: args.String("id"),
+ Role: args.String("role"),
+ Type: args.String("type"),
+ Email: args.String("email"),
+ Discoverable: args.Bool("discoverable"),
+ Revoke: args.Bool("revoke"),
+ })
+}
+
func deleteHandler(ctx cli.Context) {
fmt.Println("Deleting...")
}