aboutsummaryrefslogtreecommitdiff
path: root/src/nix/edit.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-09 12:55:24 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-21 13:32:28 +0100
commitb2262be19babc37a54bed4384fecba11d87f7364 (patch)
treefadbc889d1cca475d74f7e9173c5d711289f2cdf /src/nix/edit.cc
parent4e065229c75455d3cee8bc9e791c10faa93c1b50 (diff)
Add 'nix edit' manpage
Diffstat (limited to 'src/nix/edit.cc')
-rw-r--r--src/nix/edit.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc
index 51c16f5a9..6472dd27a 100644
--- a/src/nix/edit.cc
+++ b/src/nix/edit.cc
@@ -15,14 +15,11 @@ struct CmdEdit : InstallableCommand
return "open the Nix expression of a Nix package in $EDITOR";
}
- Examples examples() override
+ std::string doc() override
{
- return {
- Example{
- "To open the Nix expression of the GNU Hello package:",
- "nix edit nixpkgs#hello"
- },
- };
+ return
+ #include "edit.md"
+ ;
}
Category category() override { return catSecondary; }