mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
nix eval: Stop progress bar before printing the result
This commit is contained in:
parent
16e0287556
commit
27b510af5c
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "eval.hh"
|
||||
#include "json.hh"
|
||||
#include "value-to-json.hh"
|
||||
#include "progress-bar.hh"
|
||||
|
||||
using namespace nix;
|
||||
|
||||
|
@ -58,6 +59,9 @@ struct CmdEval : MixJSON, InstallableCommand
|
|||
|
||||
auto v = installable->toValue(*state);
|
||||
PathSet context;
|
||||
|
||||
stopProgressBar();
|
||||
|
||||
if (raw) {
|
||||
std::cout << state->coerceToString(noPos, *v, context);
|
||||
} else if (json) {
|
||||
|
|
Loading…
Reference in a new issue