Build and Install Tools

You can use various way to build and install your CLI, this includes:

Reference

Base.writeMethod
write([io], cmd::EntryCommand)

Write the generated CLI script into a Julia script file. Default is the cachefile.

source
Comonicon.BuildTools.cmd_scriptMethod
cmd_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 actual mod.command_main.

Keywords

  • exename: The julia executable name, default is PATH.default_exename.
  • sysimg: System image to use, default is nothing.
  • project: the project path of the CLI.
  • compile: julia compile level, can be [:yes, :no, :all, :min]
  • optimize: julia optimization level, default is 2.
source