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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?