Implemented decent version of the CLI

This commit is contained in:
Roberto Alsina 2024-08-11 11:54:00 -03:00
parent e295256573
commit e8d405fc99
2 changed files with 17 additions and 6 deletions

View File

@ -31,12 +31,21 @@ is a subset of Pygments'.
Currently Tartrazine supports ... 241 languages. Currently Tartrazine supports ... 241 languages.
It has 332 themes (64 from Chroma, the rest are base16 themes via It has 331 themes (63 from Chroma, the rest are base16 themes via
[Sixteen](https://github.com/ralsina/sixteen) [Sixteen](https://github.com/ralsina/sixteen)
## Installation ## Installation
This has a CLI but it's not generally usable. From prebuilt binaries:
Each release provides statically-linked binaries that should
work on any Linux. Get them from the [releases page](https://github.com/ralsina/tartrazine/releases) and put them in your PATH.
To build from source:
1. Clone this repo
2. Run `make` to build the `tartrazine` binary
3. Copy the binary somewhere in your PATH.
## Usage ## Usage

View File

@ -2,6 +2,8 @@
## TODO ## TODO
* Implement styles * ✅ Implement styles
* Implement formatters * ✅ Implement formatters
* ✅ Implement CLI
* Implement lexer loader that respects aliases, etc * Implement lexer loader that respects aliases, etc
* Implement language guessing for file names