Sha256: ae934d433ad0b1e1fc2cd0668445c74d1c065994732392b87c80a6dd87d4feb7
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true require "pastel" require_relative "../../lib/tty-spinner" pastel = Pastel.new spinners = TTY::Spinner::Multi.new("[:spinner] Downloading files...") %w[file1 file2 file3].each do |file| spinners.register("[:spinner] #{file}") do |sp| sleep(rand * 5) sp.success(pastel.green("success")) end end spinners.auto_spin
Version data entries
5 entries across 5 versions & 1 rubygems