diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-05-05 15:18:23 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-05-05 15:18:23 +0200 |
commit | f132d82a796c91fcb741c127f37c963622b4cae4 (patch) | |
tree | 152a835a1810681ef7611a2767dfe2bdc7f2a4db /src/nix/ls.cc | |
parent | a721a0b1140bf489d645f5d85737acafc1c57c65 (diff) |
nix --help: Group commands
Diffstat (limited to 'src/nix/ls.cc')
-rw-r--r-- | src/nix/ls.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nix/ls.cc b/src/nix/ls.cc index 8590199d7..6ae4df27e 100644 --- a/src/nix/ls.cc +++ b/src/nix/ls.cc @@ -100,9 +100,11 @@ struct CmdLsStore : StoreCommand, MixLs std::string description() override { - return "show information about a store path"; + return "show information about a path in the Nix store"; } + Category category() override { return catUtility; } + void run(ref<Store> store) override { list(store->getFSAccessor()); @@ -131,9 +133,11 @@ struct CmdLsNar : Command, MixLs std::string description() override { - return "show information about the contents of a NAR file"; + return "show information about a path inside a NAR file"; } + Category category() override { return catUtility; } + void run() override { list(makeNarAccessor(make_ref<std::string>(readFile(narPath, true)))); |