Current section
Files
Jump to
Current section
Files
src/sketch_css.erl
-module(sketch_css).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-define(FILEPATH, "src/sketch_css.gleam").
-export([main/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
-file("src/sketch_css.gleam", 12).
?DOC(
" The `main` function is used as an entrypoint for Sketch CSS. That function\n"
" is not meant to be used in your code, but is called when you use `gleam run`\n"
" from the command line.\n"
"\n"
" ```\n"
" gleam run -m sketch_css\n"
" ```\n"
).
-spec main() -> nil.
main() ->
_pipe = glint:new(),
_pipe@1 = glint:with_name(_pipe, <<"Sketch CSS"/utf8>>),
_pipe@2 = glint:pretty_help(_pipe@1, glint:default_pretty_help()),
_pipe@3 = glint:add(
_pipe@2,
[<<"generate"/utf8>>],
sketch_css@commands@generate:css()
),
glint:run(_pipe@3, erlang:element(4, argv:load())).