Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/qn_cli
Qiniu upload client written in Go.
https://github.com/mozillazg/qn_cli
Last synced: 22 days ago
JSON representation
Qiniu upload client written in Go.
- Host: GitHub
- URL: https://github.com/mozillazg/qn_cli
- Owner: mozillazg
- License: mit
- Created: 2014-10-21T04:15:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-26T02:11:10.000Z (over 8 years ago)
- Last Synced: 2024-10-03T15:40:44.681Z (3 months ago)
- Language: Go
- Homepage:
- Size: 4.37 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
qn\_cli
======[![Build Status](https://travis-ci.org/mozillazg/qn_cli.svg)](https://travis-ci.org/mozillazg/qn\_cli)
Qiniu upload client by Go
Installation
------------```
$ go get -u github.com/mozillazg/qn_cli
```Usage
------```
$ export QINIU_BUCKET_NAME=""
$ export QINIU_BUCKET_URL=""
$ export QINIU_ACCESS_KEY=""
$ export QINIU_SECRET_KEY=""$ qn_cli 1234.txt
http://tmp-images.qiniudn.com/1234.txt
$ qn_cli *.txt
http://tmp-images.qiniudn.com/1234.txt
http://tmp-images.qiniudn.com/2345.txt
$ qn_cli -n test/124.txt 1234.txt
http://tmp-images.qiniudn.com/test/124.txt
$ qn_cli -d test *.txt
http://tmp-images.qiniudn.com/test/1234.txt
http://tmp-images.qiniudn.com/test/2345.txt
$ qn_cli -d test http://aiohttp.readthedocs.io/en/stable/_static/aiohttp-icon-128x128.png LICENSE
http://tmp-images.qiniudn.com/test/LICENSE
http://tmp-images.qiniudn.com/test/aiohttp-icon-128x128.png$ qn_cli --help
Usage of qn_cli:
-a=true: Auto named saved files
-d="": Save dirname
-i=[]: ignores
-max-tasks=5: Max upload tasks
-md5=false: Auto named saved files use MD5 value
-n="": Save name
-v=false: Verbose mode
-w=true: Overwrite exists files
```