spinner

Version, currently master branch1 version
  • master branchlatestMar 8, 2023

github.com/kojix2/spinner

Terminal Spinner for Crystal Programming Language

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  spinner:
    github: kojix2/spinner
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Authors
Aşkın Gedik, Robert Müller

Dependencies

This version declares no dependencies.

README

Spinner

Terminal Spinner for Crystal Programming Language

All

Installation

Add this to your application's shard.yml:

dependencies:
  spinner:
    github: flipez/spinner

Usage

require "spinner"

sp = Spin.new
sp.start
sleep 3
sp.stop

Options

delay: default = 0.1

chars: you can choose charset from CHARSET default = Spinner::Charset[:pipe]

text: Define text which appends to your spinner default = ""

Examples

require "spinner"
require "colorize"

chars = Spinner::Charset[:arrow].map do |c|
  c.colorize(:light_green)
end

spin = Spin.new(0.2, chars)
spin.start
sleep 3
spin.stop

Color

Contributing

  1. Fork it ( https://github.com/flipez/spinner/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • askn Aşkın Gedik - creator
  • Flipez - maintainer