blob: e62808e6c995eb4360e97ea54ff0381841c4e14d [file] [log] [blame]
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +01001// SPDX-FileCopyrightText: © 2023 Matthias Andreas Benkard <code@mail.matthias.benkard.de>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
Matthias Andreas Benkard716fc322023-12-12 19:13:01 +01005/**
6 * The {@code jgvariant} command line tool.
7 *
Matthias Andreas Benkard61464282024-03-02 13:50:21 +01008 * <p>The {@link eu.mulk.jgvariant.tool} module contains a tool called {@code jgvariant} that can be
9 * used to manipulate GVariant-formatted files from the command line. Its primary purpose is to
10 * enable the scripting of OSTree repository management tasks.
Matthias Andreas Benkard716fc322023-12-12 19:13:01 +010011 *
Matthias Andreas Benkard61464282024-03-02 13:50:21 +010012 * <p>The {@link eu.mulk.jgvariant.tool.Main} class defines the entry point of the tool.
Matthias Andreas Benkard716fc322023-12-12 19:13:01 +010013 *
14 * <p>Usage example (dumping the contents of an OSTree summary file):
15 *
16 * {@snippet lang="sh" :
17 * $ jgvariant ostree summary read ./jgvariant-ostree/src/test/resources/ostree/summary
18 * }
19 *
20 * <p>Output:
21 *
22 * {@snippet lang="json" :
23 * {
24 * "entries": [
25 * {
26 * "ref": "mulkos/1.x/amd64",
27 * "value": {
28 * "checksum": "66ff167ff35ce87daac817447a9490a262ee75f095f017716a6eb1a9d9eb3350",
29 * "metadata": {
30 * "fields": {
31 * "ostree.commit.timestamp": 1640537170
32 * }
33 * },
34 * "size": 214
35 * }
36 * }
37 * ],
38 * "metadata": {
39 * "fields": {
40 * "ostree.summary.last-modified": 1640537300,
41 * "ostree.summary.tombstone-commits": false,
42 * "ostree.static-deltas": {
43 * "3d3b3329dca38871f29aeda1bf5854d76c707fa269759a899d0985c91815fe6f-66ff167ff35ce87daac817447a9490a262ee75f095f017716a6eb1a9d9eb3350": "03738040e28e7662e9c9d2599c530ea974e642c9f87e6c00cbaa39a0cdac8d44",
44 * "31c8835d5c9d2c6687a50091c85142d1b2d853ff416a9fb81b4ee30754510d52": "f481144629474bd88c106e45ac405ebd75b324b0655af1aec14b31786ae1fd61",
45 * "31c8835d5c9d2c6687a50091c85142d1b2d853ff416a9fb81b4ee30754510d52-3d3b3329dca38871f29aeda1bf5854d76c707fa269759a899d0985c91815fe6f": "2c6a07bc1cf4d7ce7d00f82d7d2d6d156fd0e31d476851b46dc2306b181b064a"
46 * },
47 * "ostree.summary.mode": "bare",
48 * "ostree.summary.indexed-deltas": true
49 * }
50 * }
51 * }
52 * }
53 */
Matthias Andreas Benkardec2c34a2024-03-02 13:48:04 +010054module eu.mulk.jgvariant.tool {
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010055 requires transitive eu.mulk.jgvariant.ostree;
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010056 requires info.picocli;
57 requires jakarta.json;
58 requires jakarta.json.bind;
59 requires java.logging;
60 requires static com.google.errorprone.annotations;
61 requires static org.apiguardian.api;
62 requires static org.jetbrains.annotations;
63
64 opens eu.mulk.jgvariant.tool to
65 info.picocli;
66
67 exports eu.mulk.jgvariant.tool;
68}