Build and Install Tools
You can use various way to build and install your CLI, this includes:
- use it as a script, and enable or disable compile cache via (
Comonicon.disable_cache
andComonicon.enable_cache
). - build it as a package and install to
~/.julia/bin
:- use
compile=:min
inComonicon.install
if you don't care about the speed - use
sysimg=true
inComonicon.install
if you care about both start up time and the speed
- use
Reference
Comonicon.Builder.create_command_env
— Functioncreate_command_env(m::Module, envpath::String=mktempdir(); test_deps=true)
Create an environment to execute the CLI command.
Arguments
m
: the CLI module.envpath
: the generated environment path.
Keyword Arguments
test_deps
: include test deps or not.
Comonicon.Builder.osname
— Methodosname()
Return the name of OS, will be used in building tarball.