-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.scaffold.toml
43 lines (40 loc) · 1.16 KB
/
.scaffold.toml
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
[template]
name = "test"
author = "Benjamin Coenen <[email protected]>"
version = "0.1.0"
# Exclude path
exclude = [
"./target",
"./examples/do_not_template_this.txt"
]
# Notes to display at the end of the generation
notes = """
Have fun using this template called {{name}} ! Here is the description: {{description}}
"""
[hooks]
# Commands to be executed before scaffolding, from within the generated project
pre = [
"bash -c some_pre_script.sh"
]
# Commands to be executed after scaffolding, from within the generated project
post = [
"cargo vendor",
"bash -c some_post_script.sh"
]
[parameters]
# parameters.name is forbidden
[parameters.feature]
type = "string"
message = "What is the name of your feature ?"
required = true
[parameters.gender]
type = "select"
message = "What is the name of your gender ?"
values = ["male", "female", "other"]
[parameters.description]
type = "string"
message = "What is the description of your feature ?"
default = "Here is my default description"
[parameters.show_description]
type = "boolean"
message = "Do you want to display description ?"