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;
|
||||
todo.push(resolveFlake());
|
||||
|
||||
stopProgressBar();
|
||||
|
||||
while (!todo.empty()) {
|
||||
auto resFlake = std::move(todo.front());
|
||||
todo.pop();
|
||||
|
@ -204,6 +206,7 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
|
|||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
auto flake = getFlake();
|
||||
stopProgressBar();
|
||||
printFlakeInfo(flake, json);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue