diff options
| author | Dan Engelbrecht <[email protected]> | 2025-05-05 18:57:15 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-05-05 18:57:15 +0200 |
| commit | fd5b8fde6bd838b17e6100f01d466bcbf01f91fe (patch) | |
| tree | 9fd20b6c4e7ba1da6d654eae74391c84981c354d /src/zen/cmds/projectstore_cmd.cpp | |
| parent | silence Out Of Disk errors to sentry (#378) (diff) | |
| download | archived-zen-fd5b8fde6bd838b17e6100f01d466bcbf01f91fe.tar.xz archived-zen-fd5b8fde6bd838b17e6100f01d466bcbf01f91fe.zip | |
UE style formatted progress output (#380)
* add UE style @progress style progress
Diffstat (limited to 'src/zen/cmds/projectstore_cmd.cpp')
| -rw-r--r-- | src/zen/cmds/projectstore_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zen/cmds/projectstore_cmd.cpp b/src/zen/cmds/projectstore_cmd.cpp index c73842b89..540c4c9ac 100644 --- a/src/zen/cmds/projectstore_cmd.cpp +++ b/src/zen/cmds/projectstore_cmd.cpp @@ -168,7 +168,7 @@ namespace { throw std::runtime_error(fmt::format("invalid job id returned, received '{}'", JobIdText)); } - ProgressBar ProgressBar(PlainProgress); + ProgressBar ProgressBar(PlainProgress ? ProgressBar::Mode::Plain : ProgressBar::Mode::Pretty, ""sv); auto OuputMessages = [&](CbObjectView StatusObject) { CbArrayView Messages = StatusObject["Messages"sv].AsArrayView(); @@ -2091,7 +2091,7 @@ OplogMirrorCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg { std::unique_ptr<ProgressBar> EmitProgressBar; { - ProgressBar ParseProgressBar(false); + ProgressBar ParseProgressBar(ProgressBar::Mode::Pretty, ""); CbArrayView Entries = ResponseObject["entries"sv].AsArrayView(); uint64_t Remaining = Entries.Num(); for (auto EntryIter : Entries) @@ -2110,7 +2110,7 @@ OplogMirrorCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg } if (!EmitProgressBar) { - EmitProgressBar = std::make_unique<ProgressBar>(false); + EmitProgressBar = std::make_unique<ProgressBar>(ProgressBar::Mode::Pretty, ""sv); WriteStopWatch.Reset(); } |