forked from lix-project/lix
nix eval: Stop progress bar before printing the result
This commit is contained in:
parent
16e0287556
commit
27b510af5c
|
@ -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