stdin-spinner
is a terminal spinner indicating if data is coming in on stdin.
For when you need to show the user that something is happening, but don't want to spam them with raw logs.
Using go get:
go get -u github.com/sgreben/stdin-spinner
Or download the binary from the releases page.
# Linux
curl -LO https://github.com/sgreben/stdin-spinner/releases/download/1.0.6/stdin-spinner_1.0.6_linux_x86_64.zip
unzip stdin-spinner_1.0.6_linux_x86_64.zip
# OS X
curl -LO https://github.com/sgreben/stdin-spinner/releases/download/1.0.6/stdin-spinner_1.0.6_osx_x86_64.zip
unzip stdin-spinner_1.0.6_osx_x86_64.zip
# Windows
curl -LO https://github.com/sgreben/stdin-spinner/releases/download/1.0.6/stdin-spinner_1.0.6_windows_x86_64.zip
unzip stdin-spinner_1.0.6_windows_x86_64.zip
Usage of stdin-spinner:
-a (alias for -tee-append)
-frames string
spinner animation frames (default "░▒▓█▓▒░")
-r duration
(alias for -refresh) (default 100ms)
-refresh duration
(default 100ms)
-tee string
copy stdin to this file
-tee-append
append to the tee file (if specified)
-w int
(alias for -width) (default 12)
-width int
spinner animation width (default 12)