Terminal Progress
Terminal Progress is a versatile and customizable progress bar manager for Ruby applications. It provides an elegant and interactive way to display progress updates in the terminal, making it ideal for tasks like seed data generation, file processing, or any operation where progress tracking is crucial.
Features
-
Interactive Progress Bars: Enhance your terminal applications with dynamic progress bars that keep users informed about ongoing tasks.
-
Customization: Terminal Progress offers a wide range of customization options, including colors and animations, allowing you to tailor the progress bars to your project's style.
-
Ease of Use: Integrate Terminal Progress seamlessly into your Ruby projects. It's beginner-friendly and designed to make progress tracking a breeze.
Installation
Add this line to your application's Gemfile:
gem 'terminal-progress', '~> 0.1.0'
And then execute
bundle install
Or install it globally with:
gem install terminal-progress
Usage
Here's a quick example of how to use Terminal Progress in your Ruby application:
require 'terminal-progress'
# Create a new progress bar with a maximum value
progress_bar = TerminalProgress.new(100)
# Update and display the progress bar
(0..100).each do |i|
progress_bar.print_progress("Processing item #{i}")
sleep(0.1)
end
# Complete the progress and clean up
progress_bar.print_complete
Contributing
Bug reports and pull requests are welcome on GitHub at our Terminal Progress Repository.
License
Terminal Progress is available as open-source software under the MIT License.