feat: add alibaba cloud fn template
This commit is contained in:
49
template.toml
Normal file
49
template.toml
Normal file
@@ -0,0 +1,49 @@
|
||||
name = "Rust Alibaba Cloud Function template"
|
||||
description = "Hatter's Rust Alibaba Cloud Function template"
|
||||
kickstart_version = 1
|
||||
ignore = [
|
||||
".gitignore",
|
||||
"README.md",
|
||||
"LICENSE",
|
||||
]
|
||||
|
||||
cleanup = [
|
||||
]
|
||||
|
||||
[[variables]]
|
||||
name = "project_name"
|
||||
default = "My-Fn"
|
||||
prompt = "What's the name of the project?"
|
||||
validation = "^([a-zA-Z][a-zA-Z0-9_-]+)$"
|
||||
|
||||
[[variables]]
|
||||
name = "bin"
|
||||
default = "my-fn"
|
||||
prompt = "What's the name of the executable?"
|
||||
validation = "^([a-zA-Z][a-zA-Z-_]+)$"
|
||||
|
||||
[[variables]]
|
||||
name = "author"
|
||||
default = "No One"
|
||||
prompt = "What is your name?"
|
||||
|
||||
[[variables]]
|
||||
name = "email"
|
||||
default = "no@example.com"
|
||||
prompt = "What is your email?"
|
||||
|
||||
[[variables]]
|
||||
name = "license"
|
||||
default = "MIT"
|
||||
prompt = "Which open-source license do you want to use?"
|
||||
choices = [
|
||||
"MIT",
|
||||
"BSD",
|
||||
"GPLv3",
|
||||
"None",
|
||||
]
|
||||
|
||||
[[variables]]
|
||||
name = "description"
|
||||
default = "A Alibaba Cloud Function application"
|
||||
prompt = "A short description of the app?"
|
||||
Reference in New Issue
Block a user