aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-28 13:14:27 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-28 13:14:27 +0200
commit25e497bf9c3a848afbd7463f132c9229d8a44284 (patch)
tree113cfd80ac53d9ef95cc9069d4671a28df5ecd22 /src/nix/flake.cc
parentdda4f7167b9a421f1bb85ee5eed79a1bf03a13e4 (diff)
nix flake info/deps: Stop progress bar before printing output
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index ce5ce8742..66fa11e47 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -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);
}
};