3 stable releases
1.0.4 | Nov 20, 2023 |
---|---|
1.0.3 | May 4, 2023 |
1.0.2 | Apr 7, 2023 |
#2143 in Command line utilities
345KB
110 lines
xny-cli
A way to use Learn X in Y Minutes on the command line.
I look up languages often on this page, and I thought it would be nice to make it similar to man
pages in linux, so I wrote a small script.
Installation
Install with command: cargo install xny
If that is not possible you can download a binary from releases and put in path.
Install from source
git clone git@github.com:YesSeri/xny-cli.git
cargo build --release
# put file in path.
Usage
# default viewer is less
xny python
# use bat as viewer
xny python --viewer bat
# list all languages
xny -s
--viewer bat
would show the output in bat, the cat
clone which syntax highlights. It is of course possible to pipe the content into bat, but then you need to set the syntax highlighting manually.
Credit
Big thank you to the creator of Learn X in Y!
Dependencies
~3.5–5MB
~88K SLoC