forked from lix-project/lix
Merge pull request #2265 from Ma27/nix-why-depends-pager
nix why-depends: render output into $PAGER
This commit is contained in:
commit
91f49ca108
|
@ -2,6 +2,7 @@
|
||||||
#include "store-api.hh"
|
#include "store-api.hh"
|
||||||
#include "progress-bar.hh"
|
#include "progress-bar.hh"
|
||||||
#include "fs-accessor.hh"
|
#include "fs-accessor.hh"
|
||||||
|
#include "shared.hh"
|
||||||
|
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
|
@ -237,6 +238,7 @@ struct CmdWhyDepends : SourceExprCommand
|
||||||
|
|
||||||
visitPath(node.path);
|
visitPath(node.path);
|
||||||
|
|
||||||
|
RunPager pager;
|
||||||
for (auto & ref : refs) {
|
for (auto & ref : refs) {
|
||||||
auto hash = storePathToHash(ref.second->path);
|
auto hash = storePathToHash(ref.second->path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue