class Launch::CLI::Helpers::Spinner
- Launch::CLI::Helpers::Spinner
- Reference
- Object
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.crConstant Summary
-
DELETE_LINE =
"\e[2K\r"
Constructors
Class Method Summary
Instance Method Summary
- #colorize_frame : Proc(String, ColoredString)
- #delete_line
- #frames(*args, **options)
- #frames(*args, **options, &)
- #io : IO
- #start : self
- #stop : self
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)
#