diff options
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r-- | src/nix/verify.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc index da1567808..fdbc2b0fd 100644 --- a/src/nix/verify.cc +++ b/src/nix/verify.cc @@ -36,6 +36,20 @@ struct CmdVerify : StorePathsCommand return "verify the integrity of store paths"; } + Examples examples() override + { + return { + Example{ + "To verify the entire Nix store:", + "nix verify --all" + }, + Example{ + "To check whether each path in the closure of Firefox has at least 2 signatures:", + "nix verify -r -n2 --no-contents $(type -p firefox)" + }, + }; + } + void run(ref<Store> store, Paths storePaths) override { restoreAffinity(); // FIXME |