diff options
| author | Andreas Knöpfle <andreas.knoepfle@gmail.com> | 2024-10-18 01:34:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 23:34:42 +0000 |
| commit | 4e00c9ce49ed7a854f34677ffccb24ddbcf7e469 (patch) | |
| tree | 249fe5ec4ca57489ccea044b7787b7e7655587da /scripts | |
| parent | 568ad0154d4ff07bdded17b404fb6b2086afd235 (diff) | |
Set MIX_QUIET=1 when running mix format (#326)
With the current way of passing things to aphelia, sometimes compilation
output gets added to the top of the formatted file.
This is because `mix format -` will actually still use
[`Mix.Shell.info/1`](https://hexdocs.pm/mix/1.17.3/Mix.Shell.html#c:info/1)
to output thing like:
```
==> module
Compiling 56 files (.ex)
```
However `info` messages can be silenced when setting `MIX_QUIET`. Docs:
https://hexdocs.pm/mix/1.17.3/Mix.html#module-environment-variables
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/formatters/apheleia-mix-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/formatters/apheleia-mix-format b/scripts/formatters/apheleia-mix-format index a93bea0..21531d7 100755 --- a/scripts/formatters/apheleia-mix-format +++ b/scripts/formatters/apheleia-mix-format @@ -32,4 +32,4 @@ if [[ "${ver}" == "${higher_ver}" ]]; then fi args+=(-) -exec "${args[@]}" +MIX_QUIET=1 exec "${args[@]}" |
