Current section

Files

Jump to
glimt src glimt@style.erl
Raw

src/glimt@style.erl

-module(glimt@style).
-compile([no_auto_import, nowarn_unused_vars]).
-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() ->
fun(S) -> _pipe = S,
_pipe@1 = gleam_community@ansi:dim(_pipe),
gleam_community@ansi:cyan(_pipe@1) end.
-spec style_debug() -> fun((binary()) -> binary()).
style_debug() ->
fun(S) -> _pipe = S,
gleam_community@ansi:cyan(_pipe) end.
-spec style_info() -> fun((binary()) -> binary()).
style_info() ->
fun(S) -> _pipe = S,
gleam_community@ansi:green(_pipe) end.
-spec style_error() -> fun((binary()) -> binary()).
style_error() ->
fun(S) -> _pipe = S,
gleam_community@ansi:red(_pipe) end.
-spec style_fatal() -> fun((binary()) -> binary()).
style_fatal() ->
fun(S) -> _pipe = S,
_pipe@1 = gleam_community@ansi:bold(_pipe),
gleam_community@ansi:red(_pipe@1) end.
-spec style_warning() -> fun((binary()) -> binary()).
style_warning() ->
fun(S) -> _pipe = S,
gleam_community@ansi:yellow(_pipe) end.
-spec style_plain() -> fun((binary()) -> binary()).
style_plain() ->
fun(S) -> S end.
-spec style_name(binary()) -> binary().
style_name(Name) ->
_pipe = Name,
gleam_community@ansi:magenta(_pipe).
-spec style_time(binary()) -> binary().
style_time(Time) ->
_pipe = Time,
gleam_community@ansi:dim(_pipe).