Sha256: 4d8e5d75373fcbdd303a7894241c32c1e0dffc6976edf3628b0577b362994417

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require_relative "../../lib/tty-spinner"

spinners = TTY::Spinner::Multi.new("[:spinner] Top level spinner")

sp1 = spinners.register "[:spinner] one"
sp2 = spinners.register "[:spinner] two"
sp3 = spinners.register "[:spinner] three"

sp1.auto_spin
sp2.auto_spin
sp3.auto_spin

sleep(2)
sp1.success
sleep 1
sp2.success
sleep 1
sp3.error

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
planter-cli-3.0.7 lib/tty-spinner/examples/multi/multi_top_level.rb
planter-cli-3.0.5 lib/tty-spinner/examples/multi/multi_top_level.rb
planter-cli-3.0.4 lib/tty-spinner/examples/multi/multi_top_level.rb
planter-cli-3.0.3 lib/tty-spinner/examples/multi/multi_top_level.rb
planter-cli-3.0.2 lib/tty-spinner/examples/multi/multi_top_level.rb