forked from lix-project/lix
nix flake info/deps: Stop progress bar before printing output
This commit is contained in:
parent
dda4f7167b
commit
25e497bf9c
|
@ -147,6 +147,8 @@ struct CmdFlakeDeps : FlakeCommand, MixJSON
|
||||||
std::queue<ResolvedFlake> todo;
|
std::queue<ResolvedFlake> todo;
|
||||||
todo.push(resolveFlake());
|
todo.push(resolveFlake());
|
||||||
|
|
||||||
|
stopProgressBar();
|
||||||
|
|
||||||
while (!todo.empty()) {
|
while (!todo.empty()) {
|
||||||
auto resFlake = std::move(todo.front());
|
auto resFlake = std::move(todo.front());
|
||||||
todo.pop();
|
todo.pop();
|
||||||
|
@ -204,6 +206,7 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
|
||||||
void run(nix::ref<nix::Store> store) override
|
void run(nix::ref<nix::Store> store) override
|
||||||
{
|
{
|
||||||
auto flake = getFlake();
|
auto flake = getFlake();
|
||||||
|
stopProgressBar();
|
||||||
printFlakeInfo(flake, json);
|
printFlakeInfo(flake, json);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue