aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2023-12-05 21:12:16 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2023-12-05 21:14:54 +0100
commita1e8443c417249dc6ff9a24c7c9d8fb2fce07c88 (patch)
tree35ac3b7251ed5e3a8909d79f259e2392a8506052 /README.md
parentfe42f326920d078f4e05afa0907258a6160c4834 (diff)
jgvariant-tool: New module.
Adds a command line tool that can read and (in the future) manipulate GVariant-formatted files. Change-Id: Icc92eb409a97e7cf72dfd7535f6a8b3587dd4a48
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 25 insertions, 1 deletions
diff --git a/README.md b/README.md
index d01d141..caa9938 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,31 @@ pairs of [String][] and `int`, you can use the following code:
List<ExampleRecord> example = decoder.decode(ByteBuffer.wrap(bytes));
-## Installation
+## Command line tool
+
+The `jgvariant-tool` module contains a tool called `jgvariant` that can
+be used to manipulate [GVariant][]-formatted files from the command line.
+Its primary purpose is to enable the scripting of [OSTree][] repository
+management tasks.
+
+Usage example (dumping the contents of an [OSTree][] summary file):
+
+ $ jgvariant ostree summary read ./jgvariant-ostree/src/test/resources/ostree/summary
+
+You can build the tool either as a shaded JAR or as a native executable.
+
+To build and run a shaded JAR:
+
+ $ mvn package -pl jgvariant-tool -am -Pshade
+ $ java -jar /home/mulk/Arbeitskasten/jgvariant/jgvariant-tool/target/jgvariant-tool-*.jar
+
+To build and run a native executable:
+
+ $ mvn package -pl jgvariant-tool -am -Pnative
+ $ ./jgvariant-tool/target/jgvariant
+
+
+## Library installation
### Usage with Maven