diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2023-12-05 21:12:16 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2023-12-05 21:14:54 +0100 |
commit | a1e8443c417249dc6ff9a24c7c9d8fb2fce07c88 (patch) | |
tree | 35ac3b7251ed5e3a8909d79f259e2392a8506052 /README.md | |
parent | fe42f326920d078f4e05afa0907258a6160c4834 (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.md | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -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 |