All apps/elm-format

elm-format

elm-format

Format Elm source code in the idiomatic way.

Runs as elm-format|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 5 fields

Format Elm files in place, to a separate file, or check them. Files are overwritten unless --output or --validate is used.

Opens the form; the finished command lands at your prompt, unrun
otty gui elm-format
Format Elm codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories*
any
Validate only
--validate
TasksEach one presets the form for one job
Check formatting
inputvalidate
Format in place
inputyes
ParametersOnly these flags are editable in the form
Files or directories
path · positional 0 · repeatable
Output file
Write here instead of overwriting the source.
path
--output
Validate only
Check formatting without changing files.
boolean
--validate
Answer yes to prompts
boolean
--yes
Elm version
string
--elm-version0.190.18
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed elm-format against its version. A form that does not match your version is not offered.