Closed eunos-1128 closed 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.
@Roger-luo
OK, I've made up my mind to adopt this package.
Thank you!
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
Allow users to execute programs by entering command names and command line arguments from the shell without having to enter the Julia REPL (I know this is feasible).
I want to allow users to use the API of this package from a Julia script, not just as a CLI tool.
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) likeentry_points
function in python'ssetup.py
.Is it possible to achieve them using comonicon?