Permalink
Browse files

added -e option, it is "HTTP_PROXY" and "NO_PROXY" environment variab…

…le support.

fixed UTF-8-mac filename bug
  • Loading branch information...
s-aska committed Jan 7, 2013
1 parent 258e80a commit b3b284d0bef4da41f6ff6cd1ab311c03d6b4c679
Showing with 178 additions and 94 deletions.
  1. +7 −3 Changes
  2. +1 −1 Makefile.PL
  3. +28 −1 README.md
  4. +142 −89 dropbox-api
View
10 Changes
@@ -1,5 +1,9 @@
Revision history for dropbox-api
1.06 Jan 8, 2013
- added -e option, it is "HTTP_PROXY" and "NO_PROXY" environment variable support.
- fix UTF-8-mac filename bug
1.05 Aug 28, 2012
- added ProgressBar. ( need -v option )
@@ -11,8 +15,8 @@ Revision history for dropbox-api
- support windows homepath.
1.02 Jan 10, 2012
- Added Exception handling
- added Exception handling
1.01 Apr 5, 2012
- Added sub command uid (sylvainfilteau)
- Added upload-to-dropbox command (sylvainfilteau)
- added sub command uid (sylvainfilteau)
- added upload-to-dropbox command (sylvainfilteau)
View
@@ -18,7 +18,7 @@ WriteMakefile(
'ExtUtils::Install' => 1.43,
'JSON' => 0,
'Path::Class' => 0.26,
'WebService::Dropbox' => 1.11,
'WebService::Dropbox' => 1.15,
'DateTime::Format::Strptime' => 0,
'Encode::Locale' => 0,
($^O eq 'darwin' ? ('Encode::UTF8Mac' => 0) : ()),
View
@@ -69,6 +69,12 @@ Dropbox API Wrapper Command
> dropbox-api ls
> dropbox-api find /
### 4. How to use Proxy
Please use -e option.
> HTTP_PROXY="http://127.0.0.1:8888" dropbox-api setup -e
## help
disp help.
@@ -94,7 +100,11 @@ disp help.
put upload file
get download file
sync sync directory (local => dropbox or dropbox => local)
uid get accound uid
uid get accound uid
Common Options
-e enable env_proxy ( HTTP_PROXY, NO_PROXY )
-D enable debug
See 'dropbox-api help <command>' for more information on a specific command.
@@ -355,5 +365,22 @@ Get your accound UID
dropbox-api uid
## Tips
### Retry
#!/bin/bash
command='dropbox-api sync dropbox:/test/ /Users/aska/test/ -vde'
NEXT_WAIT_TIME=0
EXIT_CODE=0
until $command || [ $NEXT_WAIT_TIME -eq 4 ]; do
EXIT_CODE=$?
sleep $NEXT_WAIT_TIME
let NEXT_WAIT_TIME=NEXT_WAIT_TIME+1
done
exit $EXIT_CODE
## License
Released under the [MIT license](http://creativecommons.org/licenses/MIT/).
Oops, something went wrong.

0 comments on commit b3b284d

Please sign in to comment.