mirror of
https://github.com/NixOS/nix
synced 2025-07-05 20:41:47 +02:00
repl: suppress progress bar in printValue()
This commit is contained in:
parent
9427c028ec
commit
dc359f8b7b
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ struct NixRepl
|
||||||
Value & v,
|
Value & v,
|
||||||
unsigned int maxDepth = std::numeric_limits<unsigned int>::max())
|
unsigned int maxDepth = std::numeric_limits<unsigned int>::max())
|
||||||
{
|
{
|
||||||
|
// Hide the progress bar during printing because it might interfere
|
||||||
|
logger->pause();
|
||||||
|
Finally resumeLoggerDefer([]() { logger->resume(); });
|
||||||
::nix::printValue(*state, str, v, PrintOptions {
|
::nix::printValue(*state, str, v, PrintOptions {
|
||||||
.ansiColors = true,
|
.ansiColors = true,
|
||||||
.force = true,
|
.force = true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue