mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 07:16:17 +02:00
Merge pull request #5914 from NixOS/5911-fix-nix-why-depends-pager
Start the pager early-enough in `nix why-depends`
This commit is contained in:
commit
bb24d1edd7
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,6 @@ struct CmdWhyDepends : SourceExprCommand
|
||||||
|
|
||||||
visitPath(pathS);
|
visitPath(pathS);
|
||||||
|
|
||||||
RunPager pager;
|
|
||||||
for (auto & ref : refs) {
|
for (auto & ref : refs) {
|
||||||
std::string hash(ref.second->path.hashPart());
|
std::string hash(ref.second->path.hashPart());
|
||||||
|
|
||||||
|
@ -259,6 +258,7 @@ struct CmdWhyDepends : SourceExprCommand
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
RunPager pager;
|
||||||
try {
|
try {
|
||||||
printNode(graph.at(packagePath), "", "");
|
printNode(graph.at(packagePath), "", "");
|
||||||
} catch (BailOut & ) { }
|
} catch (BailOut & ) { }
|
||||||
|
|
Loading…
Reference in a new issue