-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo-generate.toml
42 lines (33 loc) · 1.68 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
34
35
36
37
38
39
40
[template]
cargo_generate_version = ">=0.10.0"
[hooks]
pre = ["pre-script.rhai"]
post = ["post-script.rhai"]
[placeholders.type]
type = "string"
prompt = "What kind of project?"
choices = ["app", "applet"]
default = "app"
[conditional.'type == "app"'.placeholders]
name = { type = "string", prompt = "Full name", default = "Cosmic App Template" }
app_id = { type = "string", prompt = "Application ID ( https://docs.flathub.org/docs/for-app-authors/requirements#application-id )", regex= "[a-zA-Z_][a-zA-Z0-9_]*.[a-zA-Z_][a-zA-Z0-9_]*.[a-zA-Z0-9_-]+", default = "com.example.CosmicAppTemplate" }
repository = {type = "string", prompt = "Repository", default = "https://github.com/my-username/cosmic-app-template" }
description = { type = "string", prompt = "Description", default = "A Cosmic App Template"}
[conditional.'type == "applet"'.placeholders]
name = { type = "string", prompt = "Full name", default = "My Awesome Applet" }
app_id = { type = "string", prompt = "Application ID ( https://docs.flathub.org/docs/for-app-authors/requirements#application-id )", regex= "[a-zA-Z0-9_]+.[a-zA-Z0-9_]+.[a-zA-Z0-9_-]+", default = "com.example.CosmicAppletTemplate" }
repository = {type = "string", prompt = "Repository", default = "https://github.com/example/cosmic-applet-template" }
description = { type = "string", prompt = "Description", default = "A Cosmic Applet Template"}
[placeholders.author]
type = "string"
prompt = "Author"
default = "My Name"
[placeholders.email]
type = "string"
prompt = "Email"
default = "[email protected]"
[placeholders.license]
type = "string"
prompt = "What is your license?"
choices = ["MIT", "Apache-2.0", "GPL-3.0-only", "Dual MIT/Apache-2.0", "None"]
default = "MIT"