New "--format" sequences "{progress-bar-only}" and "{progress-amount-only}".

This commit is contained in:
Andrew Wood
2024-12-08 20:13:33 +00:00
parent 4ffdee0002
commit fb2e6b4074
12 changed files with 225 additions and 97 deletions
+1
View File
@@ -2,6 +2,7 @@
* *feature:* new **--format** sequence "**%nL**", showing the most recent line written (#121)
* *feature:* each **--format** sequence now has a more readable equivalent name, for example "**%r**" can be written as "**%{rate}**"
* *feature:* new **--format** sequences "**%{progress-bar-only}**" and "**%{progress-amount-only}**"
* *fix:* allow **--format** to include "%nA" more than once, with different "n" values (#122)
* *fix:* allow **--format** to include "%p" more than once
* *fix:* add _configure_ script fallback for **--remote** check when cross-compiling (#120)
+9
View File
@@ -477,6 +477,15 @@ Equivalent to \*(lq\fB\-\-progress\fR\*(rq.
Expands to fill the remaining space unless prefixed by a number to set the
width, such as \*(lq\fB%20p\fR\*(rq or \*(lq\fB%20{progress}\fR\*(rq.
.TP
.B %{progress-bar-only}
Progress bar, without any sides, and without any percentage displayed
afterwards.
Expands to fill the remaining space unless prefixed by a number.
.TP
.B %{progress-amount-only}
The percentage completion (or maximum rate, with \*(lq\fB\-\-gauge\fR\*(rq
when the size is unknown).
.TP
.BR %t ", " %{timer}
Elapsed time.
Equivalent to \*(lq\fB\-\-timer\fR\*(rq.
+11
View File
@@ -427,6 +427,17 @@ contain the following sequences:
unless prefixed by a number to set the width, such as "**%20p**" or
"**%20{progress}**".
**%{progress-bar-only}**
: Progress bar, without any sides, and without any percentage
displayed afterwards. Expands to fill the remaining space unless
prefixed by a number.
**%{progress-amount-only}**
: The percentage completion (or maximum rate, with "**\--gauge**" when
the size is unknown).
**%t**, **%{timer}**
: Elapsed time. Equivalent to "**\--timer**".