aboutsummaryrefslogtreecommitdiffstats
path: root/handlers_drive.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers_drive.go')
-rw-r--r--handlers_drive.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/handlers_drive.go b/handlers_drive.go
index 38c1e1c..a8303ed 100644
--- a/handlers_drive.go
+++ b/handlers_drive.go
@@ -112,6 +112,18 @@ func infoHandler(ctx cli.Context) {
checkErr(err)
}
+func importHandler(ctx cli.Context) {
+ args := ctx.Args()
+ err := newDrive(args).Import(drive.ImportArgs{
+ Out: os.Stdout,
+ Path: args.String("path"),
+ Parents: args.StringSlice("parent"),
+ Share: args.Bool("share"),
+ Progress: progressWriter(args.Bool("noProgress")),
+ })
+ checkErr(err)
+}
+
func exportHandler(ctx cli.Context) {
args := ctx.Args()
err := newDrive(args).Export(drive.ExportArgs{