Sha256: 58e47b42bef4dc0de50835b1e7f92384e257338535860f2b8223d9f96f1e2e6f
Contents?: true
Size: 338 Bytes
Versions: 5
Compression:
Stored size: 338 Bytes
Contents
# frozen_string_literal: true require "pastel" require_relative "../lib/tty-spinner" pastel = Pastel.new format = "[#{pastel.yellow(":spinner")}] " + pastel.yellow("Task name") spinner = TTY::Spinner.new(format, success_mark: pastel.green("+")) 20.times do spinner.spin sleep(0.1) end spinner.success(pastel.green("(successful)"))
Version data entries
5 entries across 5 versions & 1 rubygems