From e8d405fc99bdb1a4f98726ef5720fc83b4f16728 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sun, 11 Aug 2024 11:54:00 -0300 Subject: [PATCH] Implemented decent version of the CLI --- README.md | 15 ++++++++++++--- TODO.md | 8 +++++--- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3320728..425a66e 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,21 @@ is a subset of Pygments'. 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) ## 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 @@ -60,4 +69,4 @@ puts Tartrazine::Html.new.format(File.read(ARGV[0]), lexer, theme) ## Contributors -- [Roberto Alsina](https://github.com/ralsina) - creator and maintainer +- [Roberto Alsina](https://github.com/ralsina) - creator and maintainer \ No newline at end of file diff --git a/TODO.md b/TODO.md index 2c273cf..f212ff2 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,8 @@ ## TODO -* Implement styles -* Implement formatters -* Implement lexer loader that respects aliases, etc \ No newline at end of file +* ✅ Implement styles +* ✅ Implement formatters +* ✅ Implement CLI +* Implement lexer loader that respects aliases, etc +* Implement language guessing for file names \ No newline at end of file