mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
1a8a24bcb3
* vmctl: fix build for solaris os * vmctl: updated dependency (using Syscall instead of Syscall6) * vmctl: updated dependency * vmctl: updated dependency
15 lines
891 B
Go
15 lines
891 B
Go
package pb
|
|
|
|
var (
|
|
// Full - preset with all default available elements
|
|
// Example: 'Prefix 20/100 [-->______] 20% 1 p/s ETA 1m Suffix'
|
|
Full ProgressBarTemplate = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{percent . }} {{speed . }} {{rtime . "ETA %s"}}{{with string . "suffix"}} {{.}}{{end}}`
|
|
|
|
// Default - preset like Full but without elapsed time
|
|
// Example: 'Prefix 20/100 [-->______] 20% 1 p/s Suffix'
|
|
Default ProgressBarTemplate = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{percent . }} {{speed . }}{{with string . "suffix"}} {{.}}{{end}}`
|
|
|
|
// Simple - preset without speed and any timers. Only counters, bar and percents
|
|
// Example: 'Prefix 20/100 [-->______] 20% Suffix'
|
|
Simple ProgressBarTemplate = `{{with string . "prefix"}}{{.}} {{end}}{{counters . }} {{bar . }} {{percent . }}{{with string . "suffix"}} {{.}}{{end}}`
|
|
)
|