spin

The universal progress indicator

  • 所有者: kovetskiy/spin
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖


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.

主要指標

概覽
名稱與所有者kovetskiy/spin
主編程語言Go
編程語言Go (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2016-06-19 11:59:27
推送於2019-05-02 09:15:44
最后一次提交2019-05-02 12:15:37
發布數0
用户参与
星數63
關注者數4
派生數1
提交數12
已啟用問題?
問題數0
打開的問題數0
拉請求數1
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?