Sha256: a4628bbf5c2847e6014c8ea7dd449cf5a2c052b6a60080d81b4911eadb1cc6ea

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

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

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

spinners.register("[:spinner] one")   { |sp| sleep(2); sp.success("yes 2") }
spinners.register("[:spinner] two")   { |sp| sleep(3); sp.error("no 2") }
spinners.register("[:spinner] three") { |sp| sleep(1); sp.success("yes 3") }

spinners.auto_spin

Version data entries

5 entries across 5 versions & 1 rubygems

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