csokun

csokun

I love mix phx.* they are fantastic. However, I keep forgetting what argument comes first. So, I decided to write a small app that wraps mix phx.* with relevant prompt messages & hints. It works for me hope it helps others. I call it phx GitHub - csokun/phx: Phoenix Framework friendly CLI · GitHub

Showing Posts 1 to 2

Eiji

Eiji

Subjectively I don’t see custom wrappers have any use for me, because:

  1. We already have mix help … command if something is not clear.
  2. It’s not good way for copy-paste examples (learning resources, creating similar project etc.)
  3. They are harder to enhance comparing to simple bash autocompletion scripts

If I really would need to add something then it would be a simple bash script for autocompletion.

Also since lots of Unix commands supports passing arguments like you do, I would rather ask a phoenix core team if such idea could be merged to phoenix project instead of creating a wrapper.

If we would take a look at phx.new task code then we would see how simple would be a way to add prompts:
https://github.com/phoenixframework/phoenix/blob/4c9737cd1020ddb21cf1a8a714e6dc88317fd843/installer/lib/mix/tasks/phx.new.ex#L120-L130

In this case simple defp parse_opts([]) do … end function clause would do the work.

dogweather

dogweather

This is cool, thank you. I’m the kind of developer who runs ssh-keygen to follow the interactive dialog. It’s annoying to need to learn a special, unrelated DSL (how to use a CLI app) just to get some other task done. I think it’s a legacy anti-pattern, TBH. I already need to truly know 10–20 languages that actually produce value. I’ll avoid spending time learning yet another that doesn’t actually generate business value.

That being said, Golang blows every chimp in the zoo, IMO. I’m not going to be contributing any time soon. :joy_cat: In some perfect world, your code would work in Elixir and be DRY vis a vis the existing argument parser.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

type1fool
WebAuthnLiveComponent WebAuthnComponents See this post about renaming the package. Passwordless authentication for Phoenix LiveView app...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New
quatermain
Hello, I’m sharing my plugin here in forum after some time so it has time to mature and proof yourself. I use Claude Code daily on a pr...
New
gtcode
Aloha gang, There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here: ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
CodeSync
Code BEAM Europe 2026 – Call for Talks is Open! We’re excited to announce that Code BEAM Europe 2026 is now open for talk submissions :t...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews