Current section
Files
Jump to
Current section
Files
src/tale.erl
-module(tale).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/tale.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.
?MODULEDOC(
" Welcome to the Tale static site/blog generator\n"
" You can use tale CLI with:\n"
" - clone repository and inside tale run `gleam run -- help`\n"
" You will see all available commands:\n"
" ```\n"
" build Build the static files into the public directory.\n"
" new (site | theme | post) Create sites, themes, or posts.\n"
" serve Serve a site and rebuild when changes are detected.\n"
" version Print the Tale CLI version.\n"
" ```\n"
" - build an escript with `gleam run -m gleescript` take the executable and move it into your path.\n"
" You will be able to run `tale help` globally.\n"
).
-file("src/tale.gleam", 21).
-spec main() -> nil.
main() ->
tale@cli:cli(<<"1.1.0"/utf8>>).