class Launch::CLI::Helpers::Spinner

Overview

This code comes from LuckyFramework. Credits to Lucky team. https://github.com/luckyframework/lucky_cli/blob/master/src/lucky_cli/spinner.cr

Defined in:

launch/cli/helpers/spinner.cr

Constant Summary

DELETE_LINE = "\e[2K\r"

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank? blank?, present? present?

Constructor Detail

def self.new(start_text : Colorize::Object(String) | String, io : IO = STDERR, done_text : String | ColoredString | Nil = nil, colorize_frame : String -> Colorize::Object(String) = ->(frame : String) do frame.colorize.bold.green end) #

[View source]

Class Method Detail

def self.frames #

[View source]
def self.start(*args, **named_args, &) #

[View source]

Instance Method Detail

def colorize_frame : Proc(String, ColoredString) #

[View source]
def delete_line #

[View source]
def frames(*args, **options) #

[View source]
def frames(*args, **options, &) #

[View source]
def io : IO #

[View source]
def start : self #

[View source]
def stop : self #

[View source]