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