Sha256: 8aa59e28a21b634cecd7c46e7e871e000193fe9ddb3502216eba3d1dc0118417

Contents?: true

Size: 211 Bytes

Versions: 5

Compression:

Stored size: 211 Bytes

Contents

# frozen_string_literal: true

require_relative "../lib/tty-spinner"

spinner = TTY::Spinner.new("Loading :spinner ...", format: :bouncing_ball)
spinner.auto_spin

sleep 1 # Some long task

spinner.stop("done")

Version data entries

5 entries across 5 versions & 1 rubygems

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