Skip to content

terminal spinner indicating whether data is coming in on stdin. single binary, no dependencies. linux, osx, windows.

License

Notifications You must be signed in to change notification settings

sgreben/stdin-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stdin-spinner

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.

no-spin spin

Contents

Get it

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

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)

About

terminal spinner indicating whether data is coming in on stdin. single binary, no dependencies. linux, osx, windows.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published