and as long as they have feelings.Ĭonsumers have a working source code tree as quickly as possible. Non-humans should be happy also by using Copier's CLI or API, as long as theirĮxpectations are the same as for those humans. Programmers that want to start a new project quickly, or !!! tip Copier doesn't replace the DRY principle. Programmers that repeat code too much and prefer a tool to do But it is usually generatedĬopier targets these main human audiences: They lay out how to generate the subproject. run_copy ( "", "path/to/destination" ) # You can also use "gh:" as a shortcut of "" run_copy ( "gh:copier-org/copier.git", "path/to/destination" ) # Or "gl:" as a shortcut of "" run_copy ( "gl:copier-org/copier.git", "path/to/destination" )Ĭopier is composed of these main concepts: Or in Python code, programmatically: from copier import run_copy # Create a project from a local path run_copy ( "path/to/project/template", "path/to/destination" ) # Or from a Git URL. On the command-line: copier copy path/to/project/template path/to/destination ├── □ copier.yml # your template configuration To create a template: □ my_copier_template # your template project To install latest Copier release with 100% reproducibility: nix profile install '*.tar.gz' Quick start To use as a library: pip install copier or conda install -c conda-forge copier.To use as a CLI app: pipx install copier.It generates a beautiful output and takes care of not overwriting existing files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |