Releases: hugovk/linkotron
Releases · hugovk/linkotron
Release list
0.7.0
Immutable
release. Only release title and notes can be modified.
0.6.0
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
Added
CLI to format GitHub links in a shorter format.
Installation
From PyPI
python3 -m pip install --upgrade linkotronWith pipx
pipx install linkotronFrom source
git clone https://github.com/hugovk/linkotron
cd linkotron
python3 -m pip install .Usage
Run linkotron or linky, they do the same thing.
$ linky --help
usage: linky [-h] [-V] [-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
-m, --md, --markdown Output Markdown
-r, --rst, --restructuredtext
Output reStructuredTextLinkify an issue
$ linky https://github.com/python/peps/issues/1012
python/peps#1012Linkify a pull request
$ linky https://github.com/python/peps/pull/2399
python/peps#2399Linkify a commit
$ linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0
hugovk/cpython#28b2355Linkify a comment
$ linky https://github.com/python/peps/pull/2399#issuecomment-1063409480
python/peps#2399 (comment)Formatting
Markdown
$ linky --md https://github.com/python/peps/pull/2399
[python/peps#2399](https://github.com/python/peps/pull/2399)reStructuredText
$ linky --rst https://github.com/python/peps/pull/2399
`python/peps#2399 <https://github.com/python/peps/pull/2399>`__