aboutsummaryrefslogtreecommitdiff
path: root/src/nix/verify.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-09 23:45:06 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-21 13:32:28 +0100
commit8dd7d7e9db8165c316b1ef168f57ed3632507fe2 (patch)
tree2cbe600970a0360495067d631dc3de93c7f73ffd /src/nix/verify.cc
parent6b32551aba5dfd6a912277297eb28cedc92da26d (diff)
Add 'nix store verify' manpage
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r--src/nix/verify.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index bcf85d7dd..16d42349f 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -35,18 +35,11 @@ struct CmdVerify : StorePathsCommand
return "verify the integrity of store paths";
}
- Examples examples() override
+ std::string doc() override
{
- return {
- Example{
- "To verify the entire Nix store:",
- "nix store verify --all"
- },
- Example{
- "To check whether each path in the closure of Firefox has at least 2 signatures:",
- "nix store verify -r -n2 --no-contents $(type -p firefox)"
- },
- };
+ return
+ #include "verify.md"
+ ;
}
void run(ref<Store> store, StorePaths storePaths) override