CLI用于格式化链接
项目描述
linkotron
CLI用于格式化GitHub链接为更短格式。
安装
从PyPI
python3 -m pip install --upgrade linkotron
使用pipx
pipx install linkotron
从源代码
git clone https://github.com/hugovk/linkotron
cd linkotron
python3 -m pip install .
用法
运行linkotron
或linky
,它们做同样的事情。
$ linky --help
usage: linky [-h] [-V] [--no-copy] [-m | -r] input
linkotron: CLI to format GitHub links in a shorter format.
positional arguments:
input text containing GitHub links to shorten
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--no-copy do not copy output to clipboard
formatters:
-m, --md, --markdown output in Markdown
-r, --rst, --restructuredtext
output in reStructuredText
链接仓库
$ linky https://github.com/python/peps
Copied! python/peps
链接问题
$ linky https://github.com/python/peps/issues/1012
Copied! python/peps#1012
链接拉取请求
$ linky https://github.com/python/peps/pull/2399
Copied! python/peps#2399
链接提交
$ linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0
Copied! hugovk/cpython#28b2355
链接评论
$ linky https://github.com/python/peps/pull/2399#issuecomment-1063409480
Copied! python/peps#2399 (comment)
格式化
Markdown
$ linky --md https://github.com/python/peps/pull/2399
Copied! [python/peps#2399](https://github.com/python/peps/pull/2399)
reStructuredText
$ linky --rst https://github.com/python/peps/pull/2399
Copied! `python/peps#2399 <https://github.com/python/peps/pull/2399>`__
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪一个,请了解更多关于 安装包 的信息。
源代码分发
linkotron-0.3.0.tar.gz (10.7 kB 查看哈希值)
构建分发
linkotron-0.3.0-py3-none-any.whl (6.4 kB 查看哈希值)
关闭
linkotron-0.3.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b8bca977f7127af33f7e52a341572f2caf9d5c8e4fe9183a79d3bc45769d35ea |
|
MD5 | bd0a62ff1ad30450580e5cc9df999b8c |
|
BLAKE2b-256 | b14f4716af108148ecf4f923419a52b7677492bd8911bcacb33d7082bcc935b4 |
关闭
linkotron-0.3.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 09790daafa6c6081241b1e2f924d05bab1e6d8d98b4f1ab1ca7e9b5974c864d5 |
|
MD5 | e9811b4956642adb4573377760ca3b07 |
|
BLAKE2b-256 | 9e16abab8efd10b13ae58af12b76928dbd1e89e67e4061505b6199d8e5e7488c |