Current section
Files
Jump to
Current section
Files
src/ormlette@cli@generate.erl
-module(ormlette@cli@generate).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([create_generate_file/0]).
-file("/Users/ashercohen/Desktop/gleam/ormlette/src/ormlette/cli/generate.gleam", 12).
-spec create_generate_file() -> {ok, nil} | {error, simplifile:file_error()}.
create_generate_file() ->
Schema_files = gleam@option:unwrap(
ormlette@cli@schema:find_schema_files(),
[]
),
gleam@io:debug(Schema_files),
_pipe = Schema_files,
_pipe@1 = ormlette@templates@generate:render(_pipe),
ormlette@templates@utils@to_string:to_file(
_pipe@1,
<<"./src/eggs/generate.gleam"/utf8>>,
write
).