spin

The universal progress indicator

  • Owner: kovetskiy/spin
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart


spin


.. image:: http://i.imgur.com/JyfyJg9.gif
:alt: 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.

Main metrics

Overview
Name With Ownerkovetskiy/spin
Primary LanguageGo
Program languageGo (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2016-06-19 11:59:27
Pushed At2019-05-02 09:15:44
Last Commit At2019-05-02 12:15:37
Release Count0
用户参与
Stargazers Count63
Watchers Count4
Fork Count1
Commits Count12
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private