Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgreben/stdin-spinner
terminal spinner indicating whether data is coming in on stdin. single binary, no dependencies. linux, osx, windows.
https://github.com/sgreben/stdin-spinner
cli indicator progress spinner terminal
Last synced: 22 days ago
JSON representation
terminal spinner indicating whether data is coming in on stdin. single binary, no dependencies. linux, osx, windows.
- Host: GitHub
- URL: https://github.com/sgreben/stdin-spinner
- Owner: sgreben
- License: mit
- Created: 2019-02-16T20:33:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T22:57:42.000Z (over 4 years ago)
- Last Synced: 2024-10-27T07:50:15.450Z (2 months ago)
- Topics: cli, indicator, progress, spinner, terminal
- Language: Go
- Homepage:
- Size: 241 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](doc/nospin.gif) ![spin](doc/spin.gif)
## Contents
- [Contents](#contents)
- [Get it](#get-it)
- [Usage](#usage)## Get it
Using go get:
```bash
go get -u github.com/sgreben/stdin-spinner
```Or [download the binary](https://github.com/sgreben/stdin-spinner/releases/latest) from the releases page.
```bash
# 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
```text
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)
```