命令行中的Markdown剪贴板
项目描述
Rentry.co 是一个支持Markdown、预览、自定义URL和编辑的剪贴板/发布服务。
此存储库包含一个简单的脚本,允许从命令行界面粘贴和编辑。
安装
手动
wget https://raw.githubusercontent.com/radude/rentry/master/rentry -O ./rentry && chmod +x ./rentry
PyPI(确保您正在使用Python3和pip3)
pip install rentry
用法
$ rentry --help
Usage: rentry {new | edit | raw} {-h | --help} {-u | --url} {-p | --edit-code} text
Commands:
new create a new entry
edit edit an existing entry
raw get raw markdown text of an existing entry
Options:
-h, --help show this help message and exit
-u, --url URL url for the entry, random if not specified
-p, --edit-code EDIT-CODE edit code for the entry, random if not specified
Examples:
rentry new 'markdown text' # new entry with random url and edit code
rentry new -p pw -u example 'text' # with custom edit code and url
rentry edit -p pw -u example 'text' # edit the example entry
cat file | rentry new # read from pipe and paste it to rentry
rentry raw -u example # get raw markdown text
rentry raw -u https://rentry.co/example # -u accepts absolute and relative urls
项目详情
关闭
rentry-1.0.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 0eb06f84e8059008a3770cccb74b8492e816bbcfc75476e95c080ec163ef674e |
|
MD5 | 98ec6090a43d23e6cd9d42818b3efe44 |
|
BLAKE2b-256 | e7f25bcf82795773f92809f00d3da379a16cfa7e0d3889baaee4728ca998d375 |