https://github.com/shrikecode/base16-builder-bb
base16 builder written in Clojure using Babashka interpreter
https://github.com/shrikecode/base16-builder-bb
babashka base16 base16-builder clojure
Last synced: 9 days ago
JSON representation
base16 builder written in Clojure using Babashka interpreter
- Host: GitHub
- URL: https://github.com/shrikecode/base16-builder-bb
- Owner: shrikecode
- License: mit
- Created: 2024-06-29T13:44:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-29T20:09:22.000Z (over 1 year ago)
- Last Synced: 2024-12-29T03:07:41.120Z (about 1 year ago)
- Topics: babashka, base16, base16-builder, clojure
- Language: Clojure
- Homepage: https://lanius.dev/
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base16 builder in babashka
It is kind of toy project to make base16 theme builder in Clojure, and since
it's a command-line tool, why not use babashka? For migh clone the whole repo
and run it like this:
``` sh
cat scheme.yaml | bb -m base16/-main --template template.mustache \
> colorscheme.vim # or whatever out file you want
```
Alternatively you can also pass scheme as an argument:
``` sh
bb -m base16/-main --template template.mustache --scheme scheme.yaml \
> colorscheme.vim
```
## Installation
Just grab the `base16-builder-bb` from the releases, put somewhere in your `$PATH`,
make it executable and you're good to go.
### Requirements
* babashka
## Installing from source
Just run:
``` sh
bb build # creates a script in ./bin of the project
sudo bb install # copies the script to /usr/local/bin
```
To install in custom dir (e.g.: your local user scripts dir):
``` sh
bb install --destdir ~/.local/bin
```
### Build requirements
* babashka
## Note
It is very barebones for now, will add some arguments and error handling in the
future.
## Roadmap
* [ ] add option to build whole dir with templates like newer builders
* [ ] arguments like `--version`, `--help`
* [ ] arguments validation
* [ ] ~~build single binary from the project~~
* [x] build single script from the project