ComoniconBuilder.cmd_script
— Methodcmd_script(mod, shadow; kwargs...)
Generates a shell script that can be use as the entry of mod.command_main
.
Arguments
mod
: a module that contains the commands and the entry.shadow
: location of a Julia script that calls the actualmod.command_main
.
Keywords
exename
: The julia executable name, default isdefault_exename
.sysimg
: System image to use, default isnothing
.project
: the project path of the CLI.compile
: julia compile level, can be [:yes, :no, :all, :min]optimize
: julia optimization level, default is 2.
ComoniconBuilder.default_exename
— Methoddefault_exename()
Default Julia executable name: joinpath(Sys.BINDIR, Base.julia_exename())
ComoniconBuilder.default_julia_bin
— Methoddefault_julia_bin()
Return the default path to .julia/bin
.
ComoniconBuilder.default_julia_fpath
— Methoddefault_julia_fpath()
Return the default path to .julia/completions
ComoniconBuilder.detect_shell
— Methoddetect_shell()
Detect shell type via SHELL
environment variable.
ComoniconBuilder.install_script
— Methodinstall a script as the CLI
ComoniconBuilder.osname
— Methodosname()
Return the name of OS, will be used in building tarball.