A WIP CLI for the Splend tool
It is built using java and picocli, and includes support for generating a native binary using GraalVM.
The app is built using maven. To build a fat-jar that contains all the dependencies, run:
$ mvn clean package
This can then be run like:
$ java -jar target/splend-1.0-SNAPSHOT.jar <command>
To build a native binary using GraalVM and native-image tool, run:
$ mvn clean verify
This can then be run without the need for a JVM:
$ ./target/splend <command>
To use the tool, you'll need a config in ~/.splend/config.yaml
, that looks
like:
api-url: ... # The URL of your Splend API instance
id: ... # The ID of the user
token: ... # The token of the user
After building as per the instructions above (and moving the binary into your path), you can then run the following to see the available commands and options:
$ splend --help