aboutsummaryrefslogtreecommitdiff
path: root/src/nix/cat.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-09 19:21:48 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-21 13:32:28 +0100
commit2cc02bbe7675acb4754b928b5c57fa316600e877 (patch)
treecc5f5b2e9ad90b9aeb032e614c97bee0ba7b892c /src/nix/cat.cc
parenta407d14339c2c480f0103a501bcd8a3373d935cb (diff)
Add 'nix nar' manpages
Diffstat (limited to 'src/nix/cat.cc')
-rw-r--r--src/nix/cat.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nix/cat.cc b/src/nix/cat.cc
index 2ecffc9a5..fe2f0a241 100644
--- a/src/nix/cat.cc
+++ b/src/nix/cat.cc
@@ -62,6 +62,13 @@ struct CmdCatNar : StoreCommand, MixCat
return "print the contents of a file inside a NAR file on stdout";
}
+ std::string doc() override
+ {
+ return
+ #include "nar-cat.md"
+ ;
+ }
+
void run(ref<Store> store) override
{
cat(makeNarAccessor(make_ref<std::string>(readFile(narPath))));