nix flake info/deps: Stop progress bar before printing output

This commit is contained in:
Eelco Dolstra 2019-05-28 13:14:27 +02:00
parent dda4f7167b
commit 25e497bf9c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);
}
};