diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-11-14T13·31+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-11-14T13·31+0100 |
commit | 4db0a9555e3b39600847084e1b40e0bb935c13de (patch) | |
tree | 494236487cc8c250394cd9e25b7fefa6f257d40f /src/libstore/nar-accessor.hh | |
parent | c8155e9f5fba14c4edc8c5763fb7d7e9d4d123a9 (diff) |
nix ls-{nar,store} --json: Respect -R
Diffstat (limited to 'src/libstore/nar-accessor.hh')
-rw-r--r-- | src/libstore/nar-accessor.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/nar-accessor.hh b/src/libstore/nar-accessor.hh index 7699cbbb587d..ed8fe15cad23 100644 --- a/src/libstore/nar-accessor.hh +++ b/src/libstore/nar-accessor.hh @@ -10,6 +10,9 @@ ref<FSAccessor> makeNarAccessor(ref<const std::string> nar); class JSONPlaceholder; -void listNar(JSONPlaceholder & res, ref<FSAccessor> accessor, const Path & path); +/* Write a JSON representation of the contents of a NAR (except file + contents). */ +void listNar(JSONPlaceholder & res, ref<FSAccessor> accessor, + const Path & path, bool recurse); } |