All Projects → kovetskiy → spin

kovetskiy / spin

Licence: MIT License
The universal progress indicator

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

spin

usage example

The universal tool that provides the dead simple progress indicator.

Installation

spin is go-gettable:

go get github.com/kovetskiy/spin

Usage

See spin --help for command line options.

-i --stdin-as-indicator Use stdin data as progress indicator.

-o --write-stdin Write stdin to spinner's stdout on exit.

-s --status <string> Use specified <string> as spinner status.

-t --interval <millisec> Use specified <millisec> as spinner iteration interval. [default: 100]

All you need to do is pipe any command to spin as follows:

sleep 2 | spin -s 'Loading... '

and your shell will spawn spin process and terminate it when sleep exited.

If you want to indicate real progress you can use flag -i and spin will use stdin data as progress indicator:

git clone --progress https://github.com/kovetskiy/dotfiles 2>&1 | spin -i -s 'Cloning... '

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].