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

```bash git clone git@github.com:YesSeri/xny-cli.git

cargo build --release

put file in path.

```

or download a relase binary and put in path.

Usage/Examples

```bash

default viewer is less

xny python

use bat as viewer

xny python --viewer bat

list all languages

xny -s `` --viewer batwould show the output in [bat](https://github.com/sharkdp/bat), thecat` 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!