Download it from releases
wget https://github.com/LeadingMoominExpert/jslt-cli/releases/download/0.2.1/jslt.tar.gz
tar -xvzf jslt.tar.gz
and use it
Usage: jslt [-hpV] [<jsltTransform>] [<inputFile>]
[<jsltTransform>] JSLT transform file
[<inputFile>] JSON input to be transformed
-h, --help Show this help message and exit.
-p, --pretty Pretty print output
-V, --version Print version information and exit.
Build JAR
./gradlew clean jar
Build binary
./native-build
If you've made changes in the code, before building the binary you need to re-generate the native-image configurations by running the tracing agent
java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/leading.moomin.expert/jslt-cli -jar build/libs/jslt-cli.jar