aboutsummaryrefslogtreecommitdiff
path: root/src/nix/ls.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-09 20:06:19 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-21 13:32:28 +0100
commitc14ed3f8b2cbddb335227d2ff5188896e76b713f (patch)
treeb4f737b93faf65477932c81242762f4f5a04bb0d /src/nix/ls.cc
parent2cc02bbe7675acb4754b928b5c57fa316600e877 (diff)
Add 'nix store' NAR-related manpages
Diffstat (limited to 'src/nix/ls.cc')
-rw-r--r--src/nix/ls.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/nix/ls.cc b/src/nix/ls.cc
index df67240f9..d48287f27 100644
--- a/src/nix/ls.cc
+++ b/src/nix/ls.cc
@@ -94,19 +94,16 @@ struct CmdLsStore : StoreCommand, MixLs
});
}
- Examples examples() override
+ std::string description() override
{
- return {
- Example{
- "To list the contents of a store path in a binary cache:",
- "nix store ls --store https://cache.nixos.org/ -lR /nix/store/0i2jd68mp5g6h2sa5k9c85rb80sn8hi9-hello-2.10"
- },
- };
+ return "show information about a path in the Nix store";
}
- std::string description() override
+ std::string doc() override
{
- return "show information about a path in the Nix store";
+ return
+ #include "store-ls.md"
+ ;
}
void run(ref<Store> store) override