Current section
Files
Jump to
Current section
Files
src/glimt@style.erl
-module(glimt@style).
-compile(no_auto_import).
-export([style_trace/0, style_debug/0, style_info/0, style_error/0, style_fatal/0, style_warning/0, style_plain/0, style_name/1, style_time/1]).
-spec style_trace() -> fun((binary()) -> binary()).
style_trace() ->
_pipe = galant:open(),
_pipe@1 = galant:start_dim(_pipe),
_pipe@2 = galant:start_cyan(_pipe@1),
_pipe@3 = galant:placeholder(_pipe@2),
galant:to_string_styler(_pipe@3).
-spec style_debug() -> fun((binary()) -> binary()).
style_debug() ->
_pipe = galant:open(),
_pipe@1 = galant:start_cyan(_pipe),
_pipe@2 = galant:placeholder(_pipe@1),
galant:to_string_styler(_pipe@2).
-spec style_info() -> fun((binary()) -> binary()).
style_info() ->
_pipe = galant:open(),
_pipe@1 = galant:start_green(_pipe),
_pipe@2 = galant:placeholder(_pipe@1),
galant:to_string_styler(_pipe@2).
-spec style_error() -> fun((binary()) -> binary()).
style_error() ->
_pipe = galant:open(),
_pipe@1 = galant:start_red(_pipe),
_pipe@2 = galant:placeholder(_pipe@1),
galant:to_string_styler(_pipe@2).
-spec style_fatal() -> fun((binary()) -> binary()).
style_fatal() ->
_pipe = galant:open(),
_pipe@1 = galant:start_bold(_pipe),
_pipe@2 = galant:start_red(_pipe@1),
_pipe@3 = galant:placeholder(_pipe@2),
galant:to_string_styler(_pipe@3).
-spec style_warning() -> fun((binary()) -> binary()).
style_warning() ->
_pipe = galant:open(),
_pipe@1 = galant:start_yellow(_pipe),
_pipe@2 = galant:placeholder(_pipe@1),
galant:to_string_styler(_pipe@2).
-spec style_plain() -> fun((binary()) -> binary()).
style_plain() ->
_pipe = galant:open(),
_pipe@1 = galant:placeholder(_pipe),
galant:to_string_styler(_pipe@1).
-spec style_name(binary()) -> binary().
style_name(Name) ->
_pipe = galant:open(),
_pipe@1 = galant:magenta(_pipe, Name),
galant:to_string(_pipe@1).
-spec style_time(binary()) -> binary().
style_time(Time) ->
_pipe = galant:open(),
_pipe@1 = galant:dim(_pipe, Time),
galant:to_string(_pipe@1).