[Proposal] mix new --add-dep="ash" app

41 views
Skip to first unread message

Stefan Wintermeyer

unread,
Oct 15, 2023, 5:13:38 AM10/15/23
to elixir-lang-core
Hi,

most Elixir related new projects start with editing mix.exs and adding one or multiple deps. What is the reason that mix doesn't support the following two commands out of the box?

- mix new --add-dep="ash" app
- mix deps.add ash

I don't care about the exact way of doing this (syntax wise, etc.). I am just curious why this or something similar is not a feature. The idea is not really groundbreaking so I guess there must be a technical reason. Is there? It would save most of the Elixir related projects time during the setup. Shorter documentation. Less hassle for each Elixir developer.

In case there is no technical argument against this feature I'd like to propose it. I don't have the technical background to code it myself.

Viele Grüße
  Stefan

--
Wintermeyer Consulting - Johannes-Müller-Str. 10 - 56068 Koblenz - Germany
https://www.wintermeyer-consulting.de

Twitter/GitHub/Misc.: @wintermeyer

Wojtek Mach

unread,
Oct 15, 2023, 5:24:58 AM10/15/23
to elixir-l...@googlegroups.com
mix deps.add was proposed a few times on this mailing list and I believe on forum too. Please see previous discussions.

Wiadomość napisana przez Stefan Wintermeyer <s...@wintermeyer-consulting.de> w dniu 15.10.2023, o godz. 11:13:

Hi,
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/81d840d4-4199-4bb7-a16d-df0e50bfe3bbn%40googlegroups.com.

Stefan Wintermeyer

unread,
Oct 15, 2023, 5:31:16 AM10/15/23
to elixir-l...@googlegroups.com
Am So., 15. Okt. 2023 um 11:25 Uhr schrieb Wojtek Mach <woj...@wojtekmach.pl>:
> mix deps.add was proposed a few times on this mailing list and I believe on forum too. Please see previous discussions.

Let's skip the idea of mix deps.add for a moment.

What about `mix new --add-dep="ash" app` ? All the arguments against `mix deps.add` I was able to find in the discussions don't count for this and it would make life better for a lot of human beings.
Reply all
Reply to author
Forward
0 new messages