Reference
Contents
Index
COPIERTemplate.COPIERTemplateCOPIERTemplate.CopierBase.copyCOPIERTemplate.Copier.recopyCOPIERTemplate.Copier.updateCOPIERTemplate._read_data_from_existing_pathCOPIERTemplate._sanitize_package_nameCOPIERTemplate.generateCOPIERTemplate.update
COPIERTemplate.COPIERTemplate — ModuleCOPIERTemplate.jl
This package defines a copier template for Julia packages and a basic user interface aroud copier to use it from Julia.
The main functions are: generate
COPIERTemplate._read_data_from_existing_path — Methoddata = _read_data_from_existing_path(dst_path)Reads the destination folder to figure out some answers.
COPIERTemplate._sanitize_package_name — Methodpackage_name = _sanitize_package_name(path)Sanitize the path to guess the package_name by looking at the base name and removing an extension. If the result is not a valid identifier, returns "".
COPIERTemplate.generate — Functiongenerate(dst_path[, data]; kwargs...)
generate(src_path, dst_path[, data]; true, kwargs...)Runs the copy command of copier with the COPIERTemplate template. If src_path is not informed, the GitHub URL of COPIERTemplate.jl is used.
The data argument is a dictionary of answers (values) to questions (keys) that can be used to bypass some of the interactive questions.
Keyword arguments
warn_existing_pkg::Boolean = true: Whether to check if you actually meantupdate. If you rungenerateand thedst_pathcontains a.copier-answers.yml, it means that the copy was already made, so you might have meansupdateinstead. Whentrue, a warning is shown and execution is stopped.
The other keyword arguments are passed directly to the internal Copier.copy.
COPIERTemplate.update — Functionupdate([data]; kwargs...)
update(dst_path[, data]; kwargs...)Run the update command of copier, updating the dst_path (or the current path if omitted) with a new version of the template with a new version of the template.
The data argument is a dictionary of answers (values) to questions (keys) that can be used to bypass some of the interactive questions.
Keyword arguments
The keyword arguments are passed directly to the internal Copier.update.
COPIERTemplate.Copier — ModuleBase.copy — Functioncopy(dst_path[, data]; kwargs...)
copy(src_path, dst_path[, data]; kwargs...)Wrapper around copier.run_copy.
This is an internal function, if COPIERTemplate's main API is not sufficient, open an issue.
COPIERTemplate.Copier.recopy — Functionrecopy(dst_path[, data]; kwargs...)Wrapper around copier.run_recopy.
This is an internal function, if COPIERTemplate's main API is not sufficient, open an issue.
COPIERTemplate.Copier.update — Functionupdate(dst_path[, data]; kwargs...)Wrapper around copier.run_update.
This is an internal function, if COPIERTemplate's main API is not sufficient, open an issue.