Closed TORIFUKUKaiou closed 1 year ago
@TORIFUKUKaiou Thank you for reporting this! Your suggestion sounds good to me considering it helps those who run the command.
Maybe the code can be a slightly shorter with one iteration.
Enum.map(targets, &" :#{elem(&1, 0)}") |> Enum.join(",\n")
Please feel free to issue a pull request.
Environment
elixir -v
): 1.14.2mix nerves.env --info
) n/aI use https://github.com/nerves-project/nerves_bootstrap/commit/690a03038d1866d7babea2a85c3ced3c7fb7f49d . I do Local development.
hello_nerves project changes mix.exs .
hello_nerves/mix.exs
I show my humble solution. If you all prefer this, I'm going to send a pull request tomorrow.
nerves_bootstrap/templates/new/mix.exs
Current behavior
When (S)He does 'mix format', new project changes mix.exs .
Expected behavior
When (S)He does 'mix format', new project changes nothing .