#gist #github #cli #delete-file #command-line-tool

已撤回 gist-rs

GitHub 命令行工具

0.1.0 2019年1月19日

#11 in #gist

MIT 许可证

25KB
615 代码行

不稳定的工作进展

gist-rs

Crates.io Build Status Build status License: MIT

gist.github.com 的客户端工具

安装

cargo install gist-rs

构建依赖

git, rustc, cargo, gnu make, binutils, upx

构建和安装

# build and install gist-rs
git clone https://github.com/robatipoor/gist-rs && cd gist-rs && make 

运行

# usage gist-rs
gist-rs
# login github gist
gist-rs --login 'token string'
# sync list gist 
gist-rs -s
# list gist 
gist-rs -l
# sync and list gist 
gist-rs -sl
# verbose list gist 
gist-rs -lv
# post gist
echo 'Hello !' | gist-rs post
# post gist
gist-rs post -p file.txt
# get file 
gist-rs get -u url
# delete file by id
gist-rs delete -i id

依赖项

~20–31MB
~539K SLoC