dmolina / DaemonMode.jl

Client-Daemon workflow to run faster scripts in Julia
MIT License
275 stars 16 forks source link

Handle `-e` / `-E` arguments. #59

Open tecosaur opened 1 year ago

tecosaur commented 1 year ago

By using -- in the shell alias, we can get flags to be included in ARGS

alias juliaclient='julia --startup-file=no -e "using DaemonMode; runargs()" --'

This way one could do juliaclient -e 'println("Hi")' etc.

I imagine DaemonMode's runargs() could be extended to recognise -e, -E, and --project perhaps?

dmolina commented 1 year ago

This is great idea, I hope to implement in the following days, it is not a difficult one. Thank you for the suggestion.