-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopier.yml
40 lines (34 loc) · 891 Bytes
/
copier.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# TEMPLATE SETTINGS
_subdirectory: template
_templates_suffix: .jinja
_min_copier_version: "6.2.0"
_envops:
block_end_string: "%}"
block_start_string: "{%"
comment_end_string: "#}"
comment_start_string: "{#"
keep_trailing_newline: true
variable_end_string: "}}"
variable_start_string: "{{"
# TEMPLATE QUESTIONS
project_name:
type: str
help: >-
What's your project name?
Do not use dots or spaces in the name; just "A-Za-z0-9-_" please.
controller:
type: str
help: What is your new controller name?
endpoints:
type: json
help: What are your new controller endpoints?
multiline: true
# TEMPLATE NONE-CONFIGURABLE DEFAULTS
package_name:
type: str
default: "{{ project_name|lower|replace(' ','_')|replace('-','_') }}"
when: false
controller_name:
type: str
default: "{{ controller|lower|replace(' ','_')|replace('-','_') }}"
when: false