-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcargo-generate.toml
More file actions
28 lines (23 loc) · 809 Bytes
/
Copy pathcargo-generate.toml
File metadata and controls
28 lines (23 loc) · 809 Bytes
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
[template]
cargo_generate_version = ">=0.22"
[placeholders.appid]
type = "string"
prompt = "RDNN App ID (com.github.username.ProjectName)"
regex = "^[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9-_]+(\\.[a-zA-Z0-9-_]+)?$"
default = "com.github.pop-os.cosmic-app-template"
[placeholders.description]
type = "string"
prompt = "Description of application"
default = "An application for the COSMIC™ desktop"
[placeholders.license]
type = "string"
prompt = "SPDX license identifier (https://spdx.org/licenses/)"
default = "MPL-2.0"
[placeholders.repository-url]
type = "string"
prompt = "Repository URL (https://*)"
default = "https://github.com/pop-os/cosmic-app-template"
regex = "^https?:\\/\\/(www\\.)?[\\w\\-]+(\\.[\\w\\-]+)+[/#?]?.*$"
[hooks]
pre = ["generate/rename.rhai"]
post = ["generate/cleanup.rhai"]