Skip to content

Commit

Permalink
feat: add support for multiple GitHub repositories and configurable s…
Browse files Browse the repository at this point in the history
…ource directory path in copier.yaml
  • Loading branch information
entelecheia committed Nov 10, 2024
1 parent ea1a6df commit 5173533
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,20 @@ app_dirname:
type: str
help: "What is your application directory name to clone? (default: `{{ app_source_repo | regex_replace('.*/', '') }}`)"

source_github_repos:
default: ""
type: str
help: "List of GitHub repositories to add as submodules (format: username/reponame or multiple repos comma-separated)"
validator: >-
{% if not (source_github_repos | regex_search('^[a-z0-9\-]+/[a-z0-9\-]+(,[a-z0-9\-]+/[a-z0-9\-]+)*$')) %}
source_github_repos must be in format "username/reponame" or multiple "username/reponame,username2/reponame2"
{% endif %}
source_dir_path:
default: "{% if source_github_repos %}src{% else %}.{% endif %}"
type: str
help: "What is your source directory path (reletative to the repository root) to copy to app directory? (if empty, it will not copy)"

copy_scripts_dir:
default: true
type: bool
Expand Down

0 comments on commit 5173533

Please sign in to comment.