Sha256: 8d33dd218ae1218ba11c2a922acfd203fa02edc817df08ca9c7c63f7024e1dec

Contents?: true

Size: 206 Bytes

Versions: 5

Compression:

Stored size: 206 Bytes

Contents

# frozen_string_literal: true

require_relative "../lib/tty-spinner"

spinner = TTY::Spinner.new("[:spinner] Task name", format: :bouncing_ball)
20.times do
  spinner.spin
  sleep(0.1)
end

spinner.success

Version data entries

5 entries across 5 versions & 1 rubygems

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