spinner
所属分类:collect
开发工具:Crystal
文件大小:0KB
下载次数:0
上传日期:2023-03-08 04:20:54
上 传 者:
sh-1993
说明: 晶体编程语言的终端微调器,
(Terminal Spinner for Crystal Programming Language,)
文件列表:
.travis.yml (18, 2018-02-22)
LICENSE (1080, 2018-02-22)
examples/ (0, 2018-02-22)
examples/all.cr (129, 2018-02-22)
examples/color.cr (183, 2018-02-22)
examples/pavyon.cr (244, 2018-02-22)
examples/simple.cr (265, 2018-02-22)
images/ (0, 2018-02-22)
images/all.gif (85869, 2018-02-22)
images/color.gif (19098, 2018-02-22)
shard.yml (93, 2018-02-22)
spec/ (0, 2018-02-22)
spec/spec_helper.cr (40, 2018-02-22)
spec/spinner_spec.cr (120, 2018-02-22)
src/ (0, 2018-02-22)
src/spinner.cr (655, 2018-02-22)
src/spinner/ (0, 2018-02-22)
src/spinner/charset.cr (4634, 2018-02-22)
src/spinner/version.cr (39, 2018-02-22)
# Spinner
Terminal Spinner for Crystal Programming Language
![All](https://github.com/images/all.gif)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
spinner:
github: askn/spinner
```
## Usage
```crystal
require "spinner"
sp = Spin.new
sp.start
sleep 3
sp.stop
```
## Options
`delay`: `default = 0.1`
`chars`: you can choose charset from [CHARSET](https://github.comsrc/spinner/charset.cr) `default = Spinner::Charset[:pipe]`
## Examples
```crystal
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](https://github.com/images/color.gif)
## Contributing
1. Fork it ( https://github.com/askn/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](https://github.comhttps://github.com/askn) Akn Gedik - creator, maintainer
近期下载者:
相关文件:
收藏者: