Skip to content

Commit

Permalink
支持目录上传
Browse files Browse the repository at this point in the history
  • Loading branch information
bujnlc8 committed Aug 10, 2024
1 parent 2539f8f commit a78d394
Show file tree
Hide file tree
Showing 5 changed files with 257 additions and 66 deletions.
42 changes: 21 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "qiniu-upload-util"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
description = "A CLI to upload file to qiniu Kodo"
authors = ["linghaihui <75124771@qq.com>"]
Expand All @@ -12,13 +12,17 @@ categories = ["command-line-utilities"]

[dependencies]
anyhow = "1.0.86"
qiniu-uploader = "0.1"
qiniu-uploader = {version = "0.1", default-features = false}
tokio = { version = "1.39.2", features = ["full"] }
clap = { version = "4.5.13", features = ["derive"] }
clap_complete = "4.5.12"
colored = "2.1.0"
qrcode = "0.14.1"

[features]
default = ["progress-bar"]
progress-bar = ["qiniu-uploader/progress-bar"]

[profile.release]
lto = true
opt-level = "z"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PLATFORMS:=x86_64-apple-darwin x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-apple-darwin
VERSION:=0.1.1
VERSION:=0.1.2
CLI:=qiniu-upload-util
HOST_TRIPLE := $(shell rustc -vV | grep 'host:' | awk '{print $$2}')
SHELLS:=fish zsh bash elvish
Expand Down
31 changes: 22 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
[![Crates.io](https://img.shields.io/crates/v/qiniu-upload?style=flat-square)](https://crates.io/crates/qiniu-upload)
[![qiniu-upload](https://github.com/bujnlc8/qiniu-upload/actions/workflows/qiniu-upload.yml/badge.svg)](https://github.com/bujnlc8/qiniu-upload/actions/workflows/qiniu-upload.yml)

# 七牛文件上传工具

基于[https://github.com/bujnlc8/qiniu-uploader](https://github.com/bujnlc8/qiniu-uploader)

支持显示上传进度条及输出下载链接二维码
- 支持显示上传进度条

- 支持输出下载链接二维码

- 支持上传目录

![](./snapshots/help.png)

![](./snapshots/snapshot.png)

## 下载

- [⬇️ 点击下载 x86_64-apple-darwin](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_x86_64-apple-darwin.tar.gz)
- [⬇️ 点击下载 x86_64-apple-darwin](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_x86_64-apple-darwin.tar.gz)

> [qiniu-upload-util_x86_64-apple-darwin.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_x86_64-apple-darwin.tar.gz.md5)
> [qiniu-upload-util_x86_64-apple-darwin.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_x86_64-apple-darwin.tar.gz.md5)
- [⬇️ 点击下载 aarch64-apple-darwin](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_aarch64-apple-darwin.tar.gz)
- [⬇️ 点击下载 aarch64-apple-darwin](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_aarch64-apple-darwin.tar.gz)

> [qiniu-upload-util_aarch64-apple-darwin.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_aarch64-apple-darwin.tar.gz.md5)
> [qiniu-upload-util_aarch64-apple-darwin.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_aarch64-apple-darwin.tar.gz.md5)
- [⬇️ 点击下载 x86_64-unknown-linux-musl](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_x86_64-unknown-linux-musl.tar.gz)
- [⬇️ 点击下载 x86_64-unknown-linux-musl](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_x86_64-unknown-linux-musl.tar.gz)

> [qiniu-upload-util_x86_64-unknown-linux-musl.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_x86_64-unknown-linux-musl.tar.gz.md5)
> [qiniu-upload-util_x86_64-unknown-linux-musl.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_x86_64-unknown-linux-musl.tar.gz.md5)
- ~~[⬇️ 点击下载 x86_64-unknown-linux-gnu](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_x86_64-unknown-linux-gnu.tar.gz)~~
- ~~[⬇️ 点击下载 x86_64-unknown-linux-gnu](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_x86_64-unknown-linux-gnu.tar.gz)~~

> ~~[qiniu-upload-util_x86_64-unknown-linux-gnu.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.1/qiniu-upload-util_x86_64-unknown-linux-gnu.tar.gz.md5)~~
> ~~[qiniu-upload-util_x86_64-unknown-linux-gnu.tar.gz.md5](https://github.com/bujnlc8/qiniu-upload-util/releases/download/0.1.2/qiniu-upload-util_x86_64-unknown-linux-gnu.tar.gz.md5)~~
请根据你的操作系统下载相应的版本,可对比 md5 hash 值确定是否下载了最新的版本

Expand All @@ -42,4 +49,10 @@ sudo spctl --master-disable
cargo build --release --locked
```

如果不需要显示进度条

```
cargo build --release --locked --no-default-features
```

**如果在使用过程中发现 bug,欢迎反馈 👏**
Loading

0 comments on commit a78d394

Please sign in to comment.