Add flags to compiler commands

Hi,

In a future version of Elm, would it be possible/desirable to add flags to Elm commands such as init and install in order to be able to automate their processes?

Something like -y or --force to force the compiler to go ahead without requiring user input.

I’m currently trying to set up some automation with Elixir Mix tasks, but am unable to interact with Elm due to the user input required.

I can run elm make fine from a Mix task, but not any commands where a response is required.

Thanks

1 Like

For now, you can use https://www.npmjs.com/package/elm-json. It has elm new, elm install --yes, and more.

I believe you can also use yes | elm install ....

1 Like

Thanks, that helps. Would be nice if the elm compiler/generator accepted flags in the same way as most other tools do.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.