mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Merge pull request #12504 from NaN-git/fix-repl
repl: suppress progress bar in printValue()
This commit is contained in:
commit
cca4e8c8c7
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