summaryrefslogtreecommitdiff
path: root/guix/progress.scm
AgeCommit message (Collapse)Author
2017-12-15progress: Rename 'erase-in-line' to 'erase-current-line'.Ludovic Courtès
Suggested by Danny Milosavljevic <dannym@scratchpost.org>. * guix/progress.scm (erase-in-line): Rename to... (erase-current-line): ... this. Adjust callers.
2017-12-01weather: Use (guix progress) for progress report.Ludovic Courtès
* guix/progress.scm (start-progress-reporter!, stop-progress-reporter!) (progress-reporter-report!): New procedures. * guix/scripts/weather.scm (call-with-progress-reporter): New procedure. (package-outputs)[update-progress!]: Remove. Use 'call-with-progress-reporter' instead. (guix-weather): Parameterize 'current-terminal-columns'.
2017-12-01progress: Add 'progress-reporter/bar'.Ludovic Courtès
* guix/progress.scm (progress-reporter/bar): New procedure.
2017-12-01progress: 'progress-bar' accounts for brackets.Ludovic Courtès
* guix/progress.scm (progress-bar): Subtract 2 to BAR-WIDTH to account for brackets.
2017-12-01progress: Factorize erase-in-line.Ludovic Courtès
* guix/progress.scm (erase-in-line): New procedure. (progress-reporter/file): Use it.
2017-10-19Add (guix progress).Ludovic Courtès
Among other things, this removes (guix utils), (guix ui), (guix config), etc. from the closure of (guix build download), as was the case since 798648515b77507c242752457b4dc17c155bad6e. * guix/utils.scm (<progress-reporter>, call-with-progress-reporter): Move to... * guix/progress.scm: ... here. New file. * Makefile.am (MODULES): Add it. * guix/build/download.scm (current-terminal-columns) (nearest-exact-integer, duration->seconds, seconds->string) (byte-count->string, progress-bar, string-pad-middle) (rate-limited, progress-reporter/file, dump-port*) (time-monotonic): Move to progress.scm. * guix/scripts/download.scm: Adjust accordingly. * guix/scripts/substitute.scm: Likewise.