-
Notifications
You must be signed in to change notification settings - Fork 8
/
cargo-generate.toml
33 lines (26 loc) · 1.21 KB
/
cargo-generate.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
[template]
ignore = [".github", "artifacts", "target"]
exclude = ["justfile"]
[hooks]
post = ["post-script.rhai"]
[placeholders]
include_app = { prompt = "Include App Module", default = true, type = "bool" }
include_adapter = { prompt = "Include Adapter Module", default = true, type = "bool" }
include_standalone = { prompt = "Include Standalone Module", default = true, type = "bool" }
[conditional.'include_app'.placeholders]
# App can have IBC
with_ibc = { prompt = "Would you like to include IBC template in the app?", default = false, type = "bool" }
app_name = { prompt = "Enter App Name", default = "my_app", type = "string" }
[conditional.'include_adapter'.placeholders]
adapter_name = { prompt = "Enter Adapter Name", default = "my_adapter", type = "string" }
[conditional.'include_standalone'.placeholders]
standalone_name = { prompt = "Enter Standalone Name", default = "my_standalone", type = "string" }
# Ignore files if not included
[conditional.'!include_app']
ignore = ["contracts/{{app_name}}"]
[conditional.'!include_adapter']
ignore = ["contracts/{{adapter_name}}"]
[conditional.'!include_standalone']
ignore = ["contracts/{{standalone_name}}"]
[conditional.'!with_ibc']
ignore = ["contracts/{{app_name}}/src/ibc"]