#paste #hastebin #pastebin #haste

应用程序 upaste

paste.rs、hastebin 或任何通用粘贴服务的简单 CLI 客户端

10 个版本

使用旧的 Rust 2015

0.3.0 2020 年 12 月 3 日
0.2.7 2017 年 11 月 11 日
0.2.5 2017 年 7 月 6 日
0.2.4 2017 年 5 月 20 日
0.1.0 2017 年 3 月 18 日

#1026开发工具

MIT 许可证

15KB
275

upaste 构建状态 crates.io

paste.rs / hastebin / 一般粘贴客户端

用于上传到 paste.rs、hastebin.com 或任何接受发布和查看粘贴的网站的简单客户端

还可以查看个人服务器 upaste-server 和配套的 vim 插件 vim-upaste

安装

适用于 linux & osx 的二进制发行版。请参阅 发行版

对于其他平台的安装,请使用 cargo

cargo install upaste

用法

# simple
cat file | upaste
upaste -f <file>
# ->  ** Success! Content available at: https://hastebin.com/<some-key>

# raw
cat file | upaste --raw
upaste --file <file> --raw
# ->  ** Success! Content available at: https://hastebin.com/raw/<some-key>

# custom paste/read locations
upaste --file <file> --paste-root https://hastebin.com/documents --read-root https://hastebin.com
# ->  ** Success! Content available at: <read-root>/<some-key>

# Or specify your alternate roots as ENV vars
UPASTE_PASTEROOT=https://paste.rs
UPASTE_READROOT=https://paste.rs
upaste --file <file>
# ->  ** Success! Content available at: <UPASTE_READROOT>/<some-key>

# specifying a range of lines (start at line 15, read 30 lines)
upaste --file <file> --start 15 --lines 30

# pulling existing paste into file
upaste --pull <key> > <file>

依赖项

~3.5–4.5MB
~110K SLoC