igniter icon indicating copy to clipboard operation
igniter copied to clipboard

Support `--runtime false` in `mix igniter.install <package>`

Open christhekeele opened this issue 4 months ago • 3 comments

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

AI Policy

  • [x] I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Is your feature request related to a problem? Please describe.

For packages mainly meant to drive only custom Mix.Task.Compiler compilers and Mix.Tasks.Format formatters, you always want developers to specify runtime: false in their dependency on your project.

Describe the solution you'd like

Similar to --only, it would be nice to support a --runtime false option in mix igniter.install <package>.

This could also be controlled by a :runtime field in Igniter.Mix.Task.Info to make the API trivial to use by Igniter consumers, similar to :only.

Describe alternatives you've considered

This can be accomplished with query strings today. The linked issue demonstrates how to do this explicitly for runtime: false, and that issue is what spawned the Igniter.Mix.Task.Info.only option we have today, so support for Igniter.Mix.Task.Info.runtime seems pretty intuitive as an enhancement.

Additional context

No response

christhekeele avatar Jul 24 '26 18:07 christhekeele

Agreed 😄 PRs welcome to support it both in the options and as an explicit flag.

zachdaniel avatar Jul 24 '26 19:07 zachdaniel

If no PRs have been put through for this yet, I can start working on it

jbfawcett24 avatar Oct 01 '26 18:10 jbfawcett24

@jbfawcett24 go for it!

christhekeele avatar Oct 01 '26 19:10 christhekeele