Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70583

Implement a renderer for progress_bar in cli output

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-70583-cli-progress
    • Hide

      1) Run this test cli script:

      php MDL-70536-cli-progress.php

      2) Confirm progress bars are blue while progressing and green when done

      3) Confirm the estimate remaining is correct and counts down

       4) Repeat but simulating a non tty: (or test it on windows)

      php MDL-70536-cli-progress.php | cat -v

      5) Confirm you still get a simpler but dynamic progress bar with no ascii codes messing up the console 

       

      Show
      1) Run this test cli script: php MDL-70536 -cli-progress.php 2) Confirm progress bars are blue while progressing and green when done 3) Confirm the estimate remaining is correct and counts down  4) Repeat but simulating a non tty: (or test it on windows) php MDL-70536 -cli-progress.php | cat -v 5) Confirm you still get a simpler but dynamic progress bar with no ascii codes messing up the console   

    Description

      Should be the exact same as web output:

      $progressbar = new progress_bar();

      $progressbar->create();

      And use ASCII cursors to draw and update a progress bar like:

       

      Attachments

        Issue Links

          Activity

            People

              brendanheywood Brendan Heywood
              brendanheywood Brendan Heywood
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours, 10 minutes
                  6h 10m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.