CLI to format links
Project description
linkotron
CLI to format GitHub links in a shorter format.
Installation
From PyPI
python3 -m pip install --upgrade linkotron
With pipx
pipx install linkotron
From 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] [--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
Linkify a repo
$ linky https://github.com/python/peps
Copied! python/peps
Linkify an issue
$ linky https://github.com/python/peps/issues/1012
Copied! python/peps#1012
Linkify a pull request
$ linky https://github.com/python/peps/pull/2399
Copied! python/peps#2399
Linkify a commit
$ linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0
Copied! hugovk/cpython#28b2355
Linkify a comment
$ linky https://github.com/python/peps/pull/2399#issuecomment-1063409480
Copied! python/peps#2399 (comment)
Formatting
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>`__
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
linkotron-0.2.0.tar.gz
(10.1 kB
view details)
Built Distribution
File details
Details for the file linkotron-0.2.0.tar.gz
.
File metadata
- Download URL: linkotron-0.2.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c59b668607af539485c15544a9a244dfca08b75384b44920dd00f406a0bf970 |
|
MD5 | a5e6334000c0d9d24919180187f04df0 |
|
BLAKE2b-256 | b70a96c1a7ef136089a880406b270e233eef34aff196aa1c0457bb12afc1c3f1 |
Provenance
File details
Details for the file linkotron-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: linkotron-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff8842742950e8a83fd6c6af66caa2e5fa7bbe6f851634cdd3d16cc0e79d57b3 |
|
MD5 | f22e52d61e73beb1057089ea1943b6ed |
|
BLAKE2b-256 | 5015e474def6831ef2dc3146e729ea649f783e31e3a15390ac56d3e3b27f0226 |