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 "eval.hh"
|
||||||
#include "json.hh"
|
#include "json.hh"
|
||||||
#include "value-to-json.hh"
|
#include "value-to-json.hh"
|
||||||
|
#include "progress-bar.hh"
|
||||||
|
|
||||||
using namespace nix;
|
using namespace nix;
|
||||||
|
|
||||||
|
@ -58,6 +59,9 @@ struct CmdEval : MixJSON, InstallableCommand
|
||||||
|
|
||||||
auto v = installable->toValue(*state);
|
auto v = installable->toValue(*state);
|
||||||
PathSet context;
|
PathSet context;
|
||||||
|
|
||||||
|
stopProgressBar();
|
||||||
|
|
||||||
if (raw) {
|
if (raw) {
|
||||||
std::cout << state->coerceToString(noPos, *v, context);
|
std::cout << state->coerceToString(noPos, *v, context);
|
||||||
} else if (json) {
|
} else if (json) {
|
||||||
|
|
Loading…
Reference in a new issue