Crates.io | xny |
lib.rs | xny |
version | 1.0.4 |
source | src |
created_at | 2023-04-07 12:17:40.077516 |
updated_at | 2023-11-20 17:57:18.703873 |
description | A tool to search files |
homepage | https://github.com/YesSeri/xny-cli |
repository | https://github.com/YesSeri/xny-cli |
max_upload_size | |
id | 832901 |
size | 415,703 |
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.
Install with command: cargo install xny
If that is not possible you can download a binary from releases and put in path.
git clone git@github.com:YesSeri/xny-cli.git
cargo build --release
# put file in path.
# 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.
Big thank you to the creator of Learn X in Y!