Roger-luo / Configurations.jl

Options & Configurations made easy.
https://configurations.rogerluo.dev/stable
MIT License
80 stars 12 forks source link

What is the best way to support --module arguments in Julia 1.12? #100

Open fonsp opened 7 months ago

fonsp commented 7 months ago

Hey! I would like to add julia -m Pluto support in Julia 1.12 (see Julia PR) to Pluto! I thought it would be nice if users could also provide some of Pluto's settings as args, like julia -m Pluto --port=8000 --auto_reload_from_file=true.

I know this functionality already exists in Comonicon.jl, what is the best way to go about this?

Thanks Roger!!

Roger-luo commented 7 months ago

Hi Fons! Good timing. I just finished my last paper before graduation. So I'd expect to have some time on software this summer. The best way, I believe, is to let Comonicon generate the module entry point so -m will just work without changing this package. I'm also considering refactoring Comonicon to use my latest toolchain with new algebra data type support and a new version of MLStyle! Especially given we have the package images now, we might not need Comonicon's dep-free runtime; we will have space in latency time for better CLI printing, etc. Let's chat about this during JuliaCon this year! Maybe I can just help you set it up at that time.

fonsp commented 7 months ago

Yayyy yes let's talk at JuliaCon!!