feat: init template

This commit is contained in:
2020-11-21 23:15:22 +08:00
parent bb4695fb98
commit 9ce44ce6d5
8 changed files with 125 additions and 2 deletions

28
template.toml Normal file
View File

@@ -0,0 +1,28 @@
name = "Rust Clap CLI template"
description = "Hatter's Rust Clap CLI template"
kickstart_version = 1
ignore = [
".gitignore",
"README.md",
"LICENSE",
]
cleanup = [
]
[[variables]]
name = "project_name"
default = "My-CLI"
prompt = "What's the name of the project?"
validation = "^([a-zA-Z][a-zA-Z0-9_-]+)$"
[[variables]]
name = "bin"
default = "my-cli"
prompt = "What's the name of the executable?"
validation = "^([a-zA-Z][a-zA-Z-_]+)$"
[[variables]]
name = "description"
default = "A CLI application"
prompt = "A short description of the app?"