Current section

Files

Jump to
oaspec src oaspec.erl
Raw

src/oaspec.erl

-module(oaspec).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/oaspec.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/oaspec.gleam", 6).
?DOC(" CLI entry point for the oaspec code generator.\n").
-spec main() -> nil.
main() ->
_pipe = oaspec@cli:app(),
glint:run(_pipe, erlang:element(4, argv:load())).