mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
nix flake info/deps: Stop progress bar before printing output
This commit is contained in:
parent
dda4f7167b
commit
25e497bf9c
1 changed files with 3 additions and 0 deletions
|
@ -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