Packages

A convention-first web framework for Gleam

Current section

Files

Jump to
refrakt src refrakt@cli@format.erl
Raw

src/refrakt@cli@format.erl

-module(refrakt@cli@format).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/refrakt/cli/format.gleam").
-export([format_files/1]).
-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/refrakt/cli/format.gleam", 4).
?DOC(" Run `gleam format` on generated files.\n").
-spec format_files(list(binary())) -> nil.
format_files(Paths) ->
refrakt_format_ffi:format_files(Paths).