1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

Logger, ProgressBar: add a way to pause/resume

Add new virtual methods pause and resume to the Logger class, and
implement them in ProgressBar to allow to pause the bar refreshing.
This commit is contained in:
Alexander Bantyev 2023-03-09 18:11:01 +04:00
parent 4dcc0a1b76
commit 85df7e7ea2
No known key found for this signature in database
GPG key ID: 48ABA304F3A30FE9
2 changed files with 16 additions and 0 deletions

View file

@ -72,6 +72,9 @@ public:
virtual void stop() { };
virtual void pause() { };
virtual void resume() { };
// Whether the logger prints the whole build log
virtual bool isVerbose() { return false; }