Packages

Dev Tools for Eensy (Gleam framework for microprocessor-based embedded systems).

Current section

Files

Jump to
eensy_dev_tools src eensy_dev_tools.erl
Raw

src/eensy_dev_tools.erl

-module(eensy_dev_tools).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-file("src/eensy_dev_tools.gleam", 6).
-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, <<"eensy/dev"/utf8>>),
_pipe@3 = glint:add(
_pipe@2,
[<<"pack"/utf8>>],
eensy_dev_tools@cli@pack:app()
),
_pipe@4 = glint:add(
_pipe@3,
[<<"flash"/utf8>>],
eensy_dev_tools@cli@flash:app()
),
glint:run(_pipe@4, Args).