Sha256: 0040d1ee78ac60feeb588d3b5c105e0532e6ad34d667635f29f40e6e5fb5a2b7

Contents?: true

Size: 191 Bytes

Versions: 5

Compression:

Stored size: 191 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.error("(error)")

Version data entries

5 entries across 5 versions & 1 rubygems

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