From 4db0a9555e3b39600847084e1b40e0bb935c13de Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Nov 2017 14:31:28 +0100 Subject: nix ls-{nar,store} --json: Respect -R --- src/libstore/nar-accessor.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libstore/nar-accessor.hh') diff --git a/src/libstore/nar-accessor.hh b/src/libstore/nar-accessor.hh index 7699cbbb5..ed8fe15ca 100644 --- a/src/libstore/nar-accessor.hh +++ b/src/libstore/nar-accessor.hh @@ -10,6 +10,9 @@ ref makeNarAccessor(ref nar); class JSONPlaceholder; -void listNar(JSONPlaceholder & res, ref accessor, const Path & path); +/* Write a JSON representation of the contents of a NAR (except file + contents). */ +void listNar(JSONPlaceholder & res, ref accessor, + const Path & path, bool recurse); } -- cgit v1.2.3