bin/dbox in dbox-0.3.0 vs bin/dbox in dbox-0.4.0

- old
+ new

@@ -7,15 +7,16 @@ def usage <<_EOF Usage: dbox <commond> [<args>] Commands: - authorize Generate auth keys - create <remote_path> [<local_path>] Create a new Dropbox folder - clone <remote_path> [<local_path>] Clone an existing Dropbox folder - pull [<local_path>] Pull chonges from Dropbox - push [<local_path>] Push changes to Dropbox + authorize Generate auth keys + create <remote_path> [<local_path>] Create a new Dropbox folder + clone <remote_path> [<local_path>] Clone an existing Dropbox folder + pull [<local_path>] Pull chonges from Dropbox + push [<local_path>] Push changes to Dropbox + move <new_remote_path> [<local_path>] Move the remote Dropbox folder to a new location Environment varables needed for everything: export DROPBOX_APP_KEY=cmlrrjd3j0gbend export DROPBOX_APP_SECRET=uvuulp75xf9jffl @@ -54,8 +55,15 @@ when "pull", "push" # default to current directory local_path = args[0] || "." Dbox.send(command, local_path) +when "move" + remote_path = args[0] + + # default to current directory + local_path = args[1] || "." + + Dbox.send(command, remote_path, local_path) else print_usage_and_quit end