Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Procession

This is a very simple library to draw a commandline progress bar.

Usage

require'rubygems'require'procession'max_value=1000pb=Procession::Bar.new(max_value)max_value.timesdo |i|
pb.update(i)do |current_i|
"We are at #{i}"endsleep0.1end

Configuration

  • Procession.symbol The symbol to draw the progres bar (Default: #)
  • Procession.template The template of the output string (Default: "[%bar] %percent% %text")
  • Procession.length The number of symbols in the progress bar (Default: 20)

Template

The template is a string that can contain certain special keys that will be replaced:

  • %bar replaced by the progress bar
  • %percent replaced by the percent number
  • %text additional info added with the block to the update call
  • %time remaining time of the execution

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages