diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2024-02-26 16:31:00 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2024-04-24 12:58:10 +0200 |
commit | f7f2f0dc41b75b5f2a094d33e6325fdf9e8438a8 (patch) | |
tree | 80d23e32f6634279ea6f516f1592da9952cdf650 /share | |
parent | 4ea9f8f7f3367bed309c6e3f84bed541d73929e8 (diff) | |
download | justbuild-f7f2f0dc41b75b5f2a094d33e6325fdf9e8438a8.tar.gz |
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).
Diffstat (limited to 'share')
-rw-r--r-- | share/man/just.1.md | 5 |
1 files changed, 5 insertions, 0 deletions
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 ------------------------------ |