Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```