diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-12-09 19:21:48 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-12-21 13:32:28 +0100 |
commit | 2cc02bbe7675acb4754b928b5c57fa316600e877 (patch) | |
tree | cc5f5b2e9ad90b9aeb032e614c97bee0ba7b892c /src/nix/cat.cc | |
parent | a407d14339c2c480f0103a501bcd8a3373d935cb (diff) |
Add 'nix nar' manpages
Diffstat (limited to 'src/nix/cat.cc')
-rw-r--r-- | src/nix/cat.cc | 7 |
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)))); |