From f7f2f0dc41b75b5f2a094d33e6325fdf9e8438a8 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Mon, 26 Feb 2024 16:31:00 +0100 Subject: just analyse: add --dump-result command line option The result of the analysis is a JSON object containing the keys `"artifacts"`, `"runfiles"`, and `"provides"`. This JSON object, by default, is logged. However, it might be useful to process the data contained in it, while, for example, developing new rules. This patch adds a new command line option (`--dump-result`), reserved to the subcommand `analyse`, to dump the analysis result to the given file or stdout (if `-` is given). --- share/man/just.1.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share') diff --git a/share/man/just.1.md b/share/man/just.1.md index 504386ce..f4d613bf 100644 --- a/share/man/just.1.md +++ b/share/man/just.1.md @@ -712,6 +712,11 @@ by a JSON object with their intensional description. Therefore, the dumped JSON is not uniquely readable, but requires an out-of-band understanding where artifacts are to be expected. +**`--dump-result`** *`PATH`* +Dump the result of the analysis for the requested target to +file. *`-`* is treated as stdout. The output is a JSON object with the +keys *`"artifacts"`*, *`"provides"`*, and *`"runfiles"`*. + **`rebuild`** specific options ------------------------------ -- cgit v1.2.3