Sha256: 1a0d5ec26123a01a0bac780f32de3d64b27c9fdcfd7f5071f280e2dfa775f2fa

Contents?: true

Size: 282 Bytes

Versions: 5

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

require_relative "../lib/tty-spinner"

spinner = TTY::Spinner.new(":spinner :title", format: :pulse_3)

spinner.update(title: "task aaaaa")

20.times { spinner.spin; sleep(0.1) }

spinner.update(title: "task b")

20.times { spinner.spin; sleep(0.1) }

Version data entries

5 entries across 5 versions & 1 rubygems

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