Sha256: bd0daeec36b7f77573fa820db1320fcb66b23a94a75d8003cfe98b6c2b4d9af4

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

require_relative "../lib/whirly"
require "paint"

# Demonstrates all available spinners

if spinner_pack = $*[0]
  constants = [spinner_pack.upcase]
else
  constants = Whirly::Spinners.constants
end

constants.each{ |spinner_pack|
  puts
  puts Paint[spinner_pack, :underline]
  puts
  Whirly::Spinners.const_get(spinner_pack).keys.sort.each{ |spinner_name|
    Whirly.start(spinner: spinner_name, status: spinner_name){
      sleep 1.5
    }
  }
}

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
whirly-0.3.0 examples/all_spinners.rb
murano-cli-whirly-0.2.7 examples/all_spinners.rb
whirly-0.2.6 examples/all_spinners.rb
whirly-0.2.5 examples/all_spinners.rb
whirly-0.2.4 examples/all_spinners.rb
whirly-0.2.3 examples/all_spinners.rb
whirly-0.2.2 examples/all_spinners.rb
whirly-0.2.1 examples/all_spinners.rb
whirly-0.2.0 examples/all_spinners.rb