Current section
Files
Jump to
Current section
Files
src/dev_tools@dev.erl
-module(dev_tools@dev).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-spec build() -> glint:command(nil).
build() ->
glint:command(
fun(_, _, _) ->
gleam@io:debug(<<"Building..."/utf8>>),
nil
end
).
-spec main() -> nil.
main() ->
Args = erlang:element(4, argv:load()),
_pipe = glint:new(),
_pipe@1 = glint:as_module(_pipe),
_pipe@2 = glint:with_name(_pipe@1, <<"dev_tools/dev"/utf8>>),
_pipe@3 = glint:add(
_pipe@2,
[<<"init"/utf8>>],
dev_tools@internals@structure:command()
),
_pipe@4 = glint:add(_pipe@3, [<<"build"/utf8>>], build()),
glint:run(_pipe@4, Args).