项目作者: takezyou

项目描述 :
More than 60 spinners for terminal, ruby wrapper for amazing node library cli-spinners and python library py-spinners.
高级语言: Ruby
项目地址: git://github.com/takezyou/rb-spinners.git
创建时间: 2019-04-24T06:22:49Z
项目社区:https://github.com/takezyou/rb-spinners

开源协议:MIT License

下载


rb-spinners

Gem Version
Build Status
Coverage Status

More than 60 spinners for terminal, ruby wrapper for amazing node library cli-spinners and python library py-spinners.

example

The list of spinners is just a JSONfile.

If you want to use something more wonderful, use halo and ora

Installation

Add this line to your application’s Gemfile:

  1. gem 'rb-spinners'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install rb-spinners

Usage

  1. require 'spinners'
  2. puts Spinners::DOTS
  3. # {:dots=>{:interval=>80, :frames=>["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]}}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/takezyou/rb-spinners.

License

The gem is available as open source under the terms of the MIT License.