-module(funsies). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([main/0]). -file("/Users/ashercohen/Desktop/ASHERSOPRO/funsies/src/funsies.gleam", 8). -spec main() -> nil. main() -> _assert_subject = cli_project@project:find_schema_files(), {ok, Output} = case _assert_subject of {ok, _} -> _assert_subject; _assert_fail -> erlang:error(#{gleam_error => let_assert, message => <<"Pattern match failed, no pattern matched the value."/utf8>>, value => _assert_fail, module => <<"funsies"/utf8>>, function => <<"main"/utf8>>, line => 9}) end, gleam@io:println( gleam_community@ansi:bold( gleam_community@ansi:underline( gleam_community@ansi:green( <<"Starting schema file processing..."/utf8>> ) ) ) ), gleam@io:println( gleam_community@ansi:strikethrough( <<" "/utf8>> ) ), gleam@io:println( gleam_community@ansi:bold( gleam_community@ansi:magenta( <<"Found schema files to process!"/utf8>> ) ) ), gleam@io:debug( begin _pipe = gleam@dict:keys(Output), gleam@string:join(_pipe, <<", "/utf8>>) end ), gleam@io:println( gleam_community@ansi:strikethrough( <<" "/utf8>> ) ), gleam@io:println( gleam_community@ansi:bold( gleam_community@ansi:cyan( <<"Creating the `generate` file..."/utf8>> ) ) ), cli_project@project:create_files(Output), gleam_erlang_ffi:sleep(5), gleam@io:println( gleam_community@ansi:strikethrough( <<" "/utf8>> ) ), gleam@io:println( gleam_community@ansi:bold( gleam_community@ansi:yellow( <<"Generating the types + decoders + insert code..."/utf8>> ) ) ), cli_project@project:work(), gleam@io:println( gleam_community@ansi:strikethrough( <<" "/utf8>> ) ), gleam@io:println( gleam_community@ansi:bold( gleam_community@ansi:underline( gleam_community@ansi:green(<<"Processing complete!"/utf8>>) ) ) ).