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/cat.cc | |
parent | a721a0b1140bf489d645f5d85737acafc1c57c65 (diff) |
nix --help: Group commands
Diffstat (limited to 'src/nix/cat.cc')
-rw-r--r-- | src/nix/cat.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nix/cat.cc b/src/nix/cat.cc index 851f90abd..fd91f2036 100644 --- a/src/nix/cat.cc +++ b/src/nix/cat.cc @@ -30,9 +30,11 @@ struct CmdCatStore : StoreCommand, MixCat std::string description() override { - return "print the contents of a store file on stdout"; + return "print the contents of a file in the Nix store on stdout"; } + Category category() override { return catUtility; } + void run(ref<Store> store) override { cat(store->getFSAccessor()); @@ -51,9 +53,11 @@ struct CmdCatNar : StoreCommand, MixCat std::string description() override { - return "print the contents of a file inside a NAR file"; + return "print the contents of a file inside a NAR file on stdout"; } + Category category() override { return catUtility; } + void run(ref<Store> store) override { cat(makeNarAccessor(make_ref<std::string>(readFile(narPath)))); |