Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Term::ProgressBar::Quiet - Provide a progress meter if run interactively

Author

       Leon Brocard, acme@astray.com

Description

       Term::ProgressBar is a wonderful module for showing progress bars on the terminal. This module acts very
       much like that module when it is run interactively. However, when it is not run interactively (for
       example, as a cron job) then it does not show the progress bar.

Name

       Term::ProgressBar::Quiet - Provide a progress meter if run interactively

Synopsis

         use Term::ProgressBar::Quiet;
         my @todo     = ( 'x' x 10 );
         my $progress = Term::ProgressBar::Quiet->new(
             { name => 'Todo', count => scalar(@todo), ETA => 'linear' } );

         my $i = 0;
         foreach my $todo (@todo) {

             # do something with $todo
             $progress->update( ++$i );
         }
         $progress->message('All done');

See Also