Skip to content

флаг --stream для построчного вывода прогресса#2

Open
mikekolganov wants to merge 1 commit intoMaster290:mainfrom
mikekolganov:feature/stream
Open

флаг --stream для построчного вывода прогресса#2
mikekolganov wants to merge 1 commit intoMaster290:mainfrom
mikekolganov:feature/stream

Conversation

@mikekolganov
Copy link
Copy Markdown

Добавляет флаг --stream — режим вывода без анимации и carriage return. Раз в секунду печатается новая строка с текущей скоростью и прогрессом замера.

Полезно для виджетов (conky, waybar и т.п.) и любых non-TTY окружений, где перезапись строки через \r не работает.

Пример вывода:

IPv4:   1.2.3.4
Region: Moscow
ISP:    ООО Ромашка (AS12345)

Measuring Download: 45.23 Mbps (62%)
Measuring Download: 67.11 Mbps (75%)
Measuring Upload:   12.34 Mbps (40%)

Download: 89.12 Mbps
Upload:   15.67 Mbps
Latency:  12 ms

Флаг автоматически включает --all и отключает TUI.
Также добавлен .gitignore с go.sum.

…idget use)

Adds -stream mode that prints IP/region/ISP info immediately, then emits one
progress line per second during the speed test (e.g. "Measuring Download:
45.23 Mbps (62%)"), and prints the final result at the end. Useful for
conky/waybar widgets and any non-TTY environment where carriage-return
animation doesn't work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant