aboutsummaryrefslogtreecommitdiff
path: root/src/nix/add-to-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-20 12:21:46 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-20 12:21:46 +0200
commitdc2f278c95ce4a73749cbb8221a568201535d46a (patch)
tree9e4a754396d63b731ed7e5ccfb7e572547d06e1a /src/nix/add-to-store.cc
parent3c4f8c91759ac5ed6a211f8e72b9d4e8438db833 (diff)
Allow 'nix' subcommands to provide docs in Markdown format
Diffstat (limited to 'src/nix/add-to-store.cc')
-rw-r--r--src/nix/add-to-store.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc
index 713155840..023ffa4ed 100644
--- a/src/nix/add-to-store.cc
+++ b/src/nix/add-to-store.cc
@@ -36,6 +36,14 @@ struct CmdAddToStore : MixDryRun, StoreCommand
return "add a path to the Nix store";
}
+ std::string doc() override
+ {
+ return R"(
+ Copy the file or directory *path* to the Nix store, and
+ print the resulting store path on standard output.
+ )";
+ }
+
Examples examples() override
{
return {