{"repo":"comonicon/Comonicon.jl","free":true,"listed":false,"github":"https://github.com/comonicon/Comonicon.jl","clone":"git clone https://github.com/comonicon/Comonicon.jl.git","description":"Your best CLI generator in JuliaLang","language":"Julia","stars":299,"topics":["command-line","command-line-tool","command-line-interface","command-line-parser","julia"],"license":"MIT","category":"cli-tools","readme_excerpt":"Comonicon gith averminaluk ayh juldas mausan urdan [![][docs-stable-img]][docs-stable-url] [![][docs-dev-img]][docs-dev-url] Roger's magic book for command line interfaces. Installation Comonicon is a &nbsp; Julia Language &nbsp; package. To install Comonicon, please open Julia's interactive session (known as REPL) and press ] key in the REPL to use the package mode, then type the following command For stable release For current main branch Usage The simplest way to use it is via @main macro, Now if you save this in a mail.jl file, you can run the following in your terminal or use to print out a help message. Although you can use Comonicon in your script, but the recommended way to build CLI with Comonicon is to use @main in a Julia project module, so the command line interface entry will get compiled by the Julia compiler. Moreover, if you wish to create multiple commands. You can use @cast macro to annotate a function or module to create more complicated command line interfaces. Features Zero Duplication The frontend @main and @cast will try to parse everything you typed and turn them into part of your command line. This includes your function or module docstrings, your argument and keyword argument names, types and default values. We don't want to compromise on writing DRY code. If you have mentioned it in the documentation or somewhere in your script, you shouldn't write about it again in your code. This is like Python docopt but with Fire and in Julia. Zero Overhead The ","default_branch":null,"files":null,"tree":[],"storefront":"/r/comonicon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/comonicon/Comonicon.jl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}