-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopier.yml
More file actions
50 lines (39 loc) · 1.43 KB
/
copier.yml
File metadata and controls
50 lines (39 loc) · 1.43 KB
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
41
42
43
44
45
46
47
48
49
50
author_name:
type: str
help: "What is the author name?"
plugin_name:
type: str
help: "What is your plugin name?"
plugin_uuid:
type: str
help: What is the plugin UUID? (Usually this takes the form of 'com.author.plugin_name')
placeholder: "asdf"
default: com.{{ author_name | replace(" ", "") | lower() }}.{{ plugin_name | replace(" ", "") | lower() }}
when: "{{ author_name|length == 0 or plugin_name|length == 0 }}"
plugin_description:
type: str
help: "Provide a quick description for this plugin."
plugin_category:
type: str
help: "What category/folder do actions for this plugin fall under?"
action_scripts_paths:
type: str
help: "What are the filepaths of the action scripts? (space-delimited; ex input: action1.py action2.py)"
default: plugin.py
_tasks:
- echo "{{ _copier_conf.src_path }}"
# Loop through each path to create the necessary directories and files for the action_scripts_paths answer above, copying the _action.py file for each.
- |
{% for path in action_scripts_paths.split() -%}
mkdir -p "$(dirname {{ path }})" && cp {{ _copier_conf.src_path }}/_action.py {{ path }}
{% endfor %}
_exclude:
- copier.yml
- .vscode
# The contents of this are essentially pushed into the new action files created in the above task.
- _action.py
# Add some additional jinja template file suffixes, to work better with some IDE jinja extensions.
_template_suffix:
- .jinja
- .jinja2
- .j2