comonicon / Comonicon.jl

Your best CLI generator in JuliaLang
https://comonicon.org
MIT License
282 stars 25 forks source link

CLI tool development using comonicon #277

Closed eunos-1128 closed 2 months ago

eunos-1128 commented 2 months ago

Hi there,

I am planning to develop a CLI tool in Julia. I'm new to Julia, so I'm wondering if you could help me with some things I don't understand.

My requirements for the user interface are as follows

From reading the documentation, it seems that the user must use julia <filename>.jl args to run the installed program, but I would like to be able to simply run it as <filename> args (without the extension) like entry_points function in python's setup.py .

Is it possible to achieve them using comonicon?

Roger-luo commented 2 months ago

yes, this is general to any scripting language. you can put a shebang and use chomod +x <script> at the script. But Comonicon will also do this for you upon installation of a CLI project.

eunos-1128 commented 2 months ago

@Roger-luo

OK, I've made up my mind to adopt this package.

Thank you!