Clang format

This commit is contained in:
Pranav Srinivas Kumar
2019-12-18 12:47:10 -06:00
parent 358e3763c3
commit e697a43fec
4 changed files with 14 additions and 15 deletions

View File

@@ -13,10 +13,10 @@ int main() {
bar.set_bar_width(50);
bar.start_bar_with("[");
bar.fill_bar_progress_with("");
bar.lead_bar_progress_with("");
bar.lead_bar_progress_with("");
bar.fill_bar_remainder_with("-");
bar.end_bar_with(" ]");
bar.set_postfix_text("Loading dependency 1/4");
bar.set_postfix_text("Loading dependency 1/4");
bar.set_foreground_color(indicators::Color::CYAN);
// Update bar state
@@ -25,14 +25,14 @@ int main() {
// do some work
std::this_thread::sleep_for(std::chrono::milliseconds(800));
bar.set_postfix_text("Loading dependency 2/4");
bar.set_postfix_text("Loading dependency 2/4");
bar.set_progress(30); // 30% done
// do some more work
std::this_thread::sleep_for(std::chrono::milliseconds(700));
bar.set_postfix_text("Loading dependency 3/4");
bar.set_postfix_text("Loading dependency 3/4");
bar.set_progress(65); // 65% done
@@ -46,7 +46,7 @@ int main() {
bar.mark_as_completed();
// Show cursor
std::cout << "\e[?25h";
std::cout << "\e[?25h";
return 0;
}