<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/guix/status.scm, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2019-04-11T16:18:13Z</updated>
<entry>
<title>colors: Introduce a disjoint type and pre-compute ANSI escapes.</title>
<updated>2019-04-11T16:18:13Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-04-11T14:57:38Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=2569ef9dab4f796a75b8cdddd57d3be37b142036'/>
<id>urn:sha1:2569ef9dab4f796a75b8cdddd57d3be37b142036</id>
<content type='text'>
* guix/colors.scm (color-table, color): Remove.
(&lt;color&gt;): New record type.
(print-color): New procedure.
(define-color-table, color): New macros.
(color-codes-&gt;ansi): New procedure.
(%reset): New variable.
(colorize-string): Rewrite accordingly.
(color-rules): Adjust accordingly.
* guix/status.scm (print-build-event): Adjust to new 'colorize-string'
interface.
* guix/ui.scm (%highlight-argument): Likewise.
(%warning-colors, %info-colors, %error-colors, %hint-colors)
(%highlight-colors): Remove.
(%warning-color, %info-color, %error-color, %hint-color)
(%highlight-color): New variables.
</content>
</entry>
<entry>
<title>Add (guix colors).</title>
<updated>2019-04-10T10:40:58Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-04-09T20:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=5d9f9ad63191646a22dc80624227aa413a4894f0'/>
<id>urn:sha1:5d9f9ad63191646a22dc80624227aa413a4894f0</id>
<content type='text'>
* guix/colors.scm: New file.
* Makefile.am (MODULES): Add it.
* guix/ui.scm (color-table, color, colorize-string): Remove.
* guix/status.scm (isatty?*, color-output? color-rules): Remove.
</content>
</entry>
<entry>
<title>status: Erase the current line upon new builds or downloads.</title>
<updated>2019-02-11T22:23:27Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-11T21:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=5ea206a8a916ff055c1f3840e4a52ab2c123658f'/>
<id>urn:sha1:5ea206a8a916ff055c1f3840e4a52ab2c123658f</id>
<content type='text'>
* guix/status.scm (print-build-event): Add 'erase-current-line*' call
upon 'build-started, 'substituter-started, 'download-started.
</content>
</entry>
<entry>
<title>status: Do not systematically erase the previous line.</title>
<updated>2019-02-07T14:46:45Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-07T14:42:18Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=024d5275c5cd72c0121b4f70d64c63f859a68f17'/>
<id>urn:sha1:024d5275c5cd72c0121b4f70d64c63f859a68f17</id>
<content type='text'>
After a successful download, we'd erase the download-progress line, and
the end result would be two empty lines following the "downloading …"
line.

Reported by Ricardo Wurmus &lt;rekado@elephly.net&gt; at
&lt;https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33470#27&gt;.

* guix/status.scm (print-build-event)[erase-current-line*]: Set to a
no-op when PRINT-LOG? is true.
Move calls to 'erase-current-line*' to the 'build-succeeded' and
'build-failed' events.
</content>
</entry>
<entry>
<title>status: Display the current build phase.</title>
<updated>2019-02-05T11:03:25Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-05T10:51:53Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=596fb4baf0c82dbf2bdba43171c743f26fa5b924'/>
<id>urn:sha1:596fb4baf0c82dbf2bdba43171c743f26fa5b924</id>
<content type='text'>
* guix/status.scm (spin!): Add 'phase' parameter and honor it.  Callers
updated.
(print-build-event)[report-progress]: Likewise.
</content>
</entry>
<entry>
<title>status: Keep track of the current build phase.</title>
<updated>2019-02-05T11:03:25Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-05T10:24:44Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=ba514b601ba6be15b823e0a12d4b6e42f9d2489e'/>
<id>urn:sha1:ba514b601ba6be15b823e0a12d4b6e42f9d2489e</id>
<content type='text'>
* guix/status.scm (&lt;build&gt;)[phase]: New field.
(%phase-start-rx): New variable.
(update-build): Add clause to match %PHASE-START-RX and adjust the
'phase' field accordingly.
* tests/status.scm ("compute-status, build phase"): Add test
</content>
</entry>
<entry>
<title>status: Use 'define-immutable-record-type' and its functional setters.</title>
<updated>2019-02-05T11:03:25Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-05T09:51:23Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=c7465dcb96e8d35fb992f4e14c4e22251b951a98'/>
<id>urn:sha1:c7465dcb96e8d35fb992f4e14c4e22251b951a98</id>
<content type='text'>
* guix/status.scm (&lt;build&gt;): Define using
'define-immutable-record-type', and add 'set-build-completion' binding.
(update-build)[set-completion]: Remove.
Use 'set-build-completion' instead.
</content>
</entry>
<entry>
<title>status: Erase the progress bar or spinner.</title>
<updated>2019-02-04T15:20:01Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-04T10:27:24Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=7473bce207af846312d5167a398f5f20bbf3e896'/>
<id>urn:sha1:7473bce207af846312d5167a398f5f20bbf3e896</id>
<content type='text'>
Previously the progress bar wouldn't be erased by the time the next
"building foo" line would be printed.

* guix/status.scm (print-build-event)[erase-current-line*]: New
procedure.
Call it instead of (display "\r").
</content>
</entry>
<entry>
<title>status: Print a progress bar for on-going builds when possible.</title>
<updated>2019-01-29T11:09:52Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-01-27T21:44:34Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=3854c6429c648df5b5ab23f871de9ec3c466f61b'/>
<id>urn:sha1:3854c6429c648df5b5ab23f871de9ec3c466f61b</id>
<content type='text'>
* guix/status.scm (print-build-event)[report-build-progress]: New
procedure.
[print-log-line]: Add ID parameter.  Call 'report-build-progress' when
appropriate.
Adjust callers.
</content>
</entry>
<entry>
<title>status: Keep track of build completion as reported by build tools.</title>
<updated>2019-01-29T11:09:52Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-01-27T21:33:16Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=73a8681a16869a2b3a9da1c7ba9434e07a204e19'/>
<id>urn:sha1:73a8681a16869a2b3a9da1c7ba9434e07a204e19</id>
<content type='text'>
* guix/status.scm (&lt;build&gt;)[completion]: New field.
(build): Add #:completion parameter.
(%percentage-line-rx, %fraction-line-rx): New variables.
(update-build): New procedure.
(compute-status): Add 'build-log' case.
* tests/status.scm ("compute-status, build completion"): New test.
</content>
</entry>
</feed>
