Sha256: 920259bec4a11099fbb06e2fc98e35ab48f75f9814ec023fd043ac7322c71f22

Contents?: true

Size: 198 Bytes

Versions: 5

Compression:

Stored size: 198 Bytes

Contents

# frozen_string_literal: true

require_relative "../lib/tty-spinner"

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

spinner.success("(successful)")

Version data entries

5 entries across 5 versions & 1 rubygems

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