upload-to-dropbox

command module
v0.0.0-...-cd0f04a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2015 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

upload-to-dropbox

Uploads to dropbox from file or stdin.

Usage

export DROPBOX_APP_ID={...}
export DROPBOX_APP_SECRET={...}
export DROPBOX_APP_TOKEN={...}

cat main.go | upload-to-dropbox -dir mydir -filename my_prog_1.go
Environment
DROPBOX_DIR         - Dropbox Directory
DROPBOX_APP_ID      - Dropbox Application Id
DROPBOX_APP_SECRET  - Dropbox Application Secret
DROPBOX_APP_TOKEN   - Dropbox Application Token
Flags
  -input string
        Input file to upload create (stdin used by default)
  -filename string
        File name to create (required)
  -dir string
        Directory name (required, in env: DROPBOX_DIR)
  -mkdir
        Create the directory
  -token string
        Dropbox App Token (in env: DROPBOX_APP_TOKEN)
  -appId string
        Dropbox App ID (required, in env: DROPBOX_APP_ID)
  -appSecret string
        Dropbox App Secret (required, in env: DROPBOX_APP_SECRET)
  -chunk-size int
        Upload chunk size in megabytes (default 64)

Thanks

Thanks to github.com/stacktic/dropbox.

License

Apache License Version 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址