-module(tailwind@run). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -define(FILEPATH, "src/tailwind/run.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( " Runs the TailwindCSS CLI with the args defined in the `gleam.toml`.\n" " \n" " ⚠️ This module is to be ran directly as gleam module.\n" " \n" " ## Example\n" " $ gleam run -m tailwind/run\n" " \n" ). -file("src/tailwind/run.gleam", 19). ?DOC( " ⚠️ This function is to be ran directly as gleam module.\n" " \n" " # Example\n" " $ gleam run -m tailwind/run\n" " \n" " If you wish to run tailwind programmatically use `tailwind.run(args)`.\n" ). -spec main() -> nil. main() -> Output@1 = begin _pipe = tailwind:get_args(), _pipe@1 = gleam@result:'try'(_pipe, fun(Args) -> tailwind:run(Args) end), gleam@result:'try'( _pipe@1, fun(Output) -> gleam_stdlib:println(Output), {ok, nil} end ) end, case Output@1 of {error, Err} -> gleam_stdlib:println(Err); _ -> nil end.